Пример #1
0
 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));
 }
Пример #2
0
 public INEMO2_DeviceError RestoreDefault(INEMO2_SENSORS sensor, UInt32 reg)
 {
     return(INEMO2_RestoreDefault(m_DeviceHandle, sensor, reg));
 }
Пример #3
0
 private static extern INEMO2_DeviceError INEMO2_GetReg(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, UInt32 reg, ref UInt32 pRegValue, ref UInt32 pSizeRegValue);
Пример #4
0
 private static extern INEMO2_DeviceError INEMO2_RestoreDefault(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, UInt32 reg);
Пример #5
0
 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;
 }
Пример #6
0
 private static extern INEMO2_DeviceError INEMO2_SetReg(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, uint reg, byte[] RegValue, uint sizeRegValue);
Пример #7
0
 private static extern INEMO2_DeviceError INEMO2_RestoreDefault(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, uint reg);
Пример #8
0
 public INEMO2_DeviceError SetReg(INEMO2_SENSORS sensor, uint reg, byte[] RegValue)
 {
     return INEMO2_SetReg(this.m_DeviceHandle, sensor, reg, RegValue, (uint) RegValue.Length);
 }
Пример #9
0
 public INEMO2_DeviceError RestoreDefault(INEMO2_SENSORS sensor, uint reg)
 {
     return INEMO2_RestoreDefault(this.m_DeviceHandle, sensor, reg);
 }