public INEMO2_DeviceError GetReg(INEMO2_SENSORS sensor, UInt32 reg, ref UInt32 pRegValue, ref UInt32 pSizeRegValue) { return(INEMO2_GetReg(m_DeviceHandle, sensor, reg, ref pRegValue, ref pSizeRegValue)); }
public INEMO2_DeviceError RestoreDefault(INEMO2_SENSORS sensor, UInt32 reg) { return(INEMO2_RestoreDefault(m_DeviceHandle, sensor, reg)); }
private static extern INEMO2_DeviceError INEMO2_GetReg(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, UInt32 reg, ref UInt32 pRegValue, ref UInt32 pSizeRegValue);
private static extern INEMO2_DeviceError INEMO2_RestoreDefault(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, UInt32 reg);
public INEMO2_DeviceError GetReg(INEMO2_SENSORS sensor, uint reg, ref byte[] RegValue) { RegValue = new byte[0x10]; uint length = (uint) RegValue.Length; INEMO2_DeviceError error = INEMO2_GetReg(this.m_DeviceHandle, sensor, reg, RegValue, ref length); if ((error == INEMO2_DeviceError.INEMO2_ERROR_NONE) && (length < 0x10)) { Array.Resize<byte>(ref RegValue, (int) length); } return error; }
private static extern INEMO2_DeviceError INEMO2_SetReg(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, uint reg, byte[] RegValue, uint sizeRegValue);
private static extern INEMO2_DeviceError INEMO2_RestoreDefault(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, uint reg);
public INEMO2_DeviceError SetReg(INEMO2_SENSORS sensor, uint reg, byte[] RegValue) { return INEMO2_SetReg(this.m_DeviceHandle, sensor, reg, RegValue, (uint) RegValue.Length); }
public INEMO2_DeviceError RestoreDefault(INEMO2_SENSORS sensor, uint reg) { return INEMO2_RestoreDefault(this.m_DeviceHandle, sensor, reg); }