public INEMO2_DeviceError Connect(string strConnection) { this.m_DeviceHandle = INEMO2_Connect(strConnection); if (this.m_DeviceHandle.Handle == -1) { return INEMO2_DeviceError.INEMO2_ERROR_INVALID_HANDLE; } return INEMO2_DeviceError.INEMO2_ERROR_NONE; }
public INEMO2_DeviceError Connect(string strConnection) { m_DeviceHandle = INEMO2_Connect(strConnection); if (m_DeviceHandle.Handle == INEMO2_DeviceHandle.INEMO2_DEVICE_HANDLE_INVALID) { return(INEMO2_DeviceError.INEMO2_ERROR_INVALID_HANDLE); } return(INEMO2_DeviceError.INEMO2_ERROR_NONE); }
private static extern INEMO2_DeviceError INEMO2_GetOutput(INEMO2_DeviceHandle hHandle, ref INEMO2_Output output);
private static extern INEMO2_DeviceError INEMO2_Command(INEMO2_DeviceHandle hHandle, INEMO2_DeviceCommand cmd);
private static extern INEMO2_DeviceError INEMO2_GetInfoText(INEMO2_DeviceHandle hHandle, INEMO2_DeviceInfoText info, byte[] data, ref Int32 lpnSize);
private static extern INEMO2_DeviceError INEMO2_GetDataSample(INEMO2_DeviceHandle hHandle, ref INEMO2_FrameData pFrame);
private static extern UInt32 INEMO2_IsConnect(INEMO2_DeviceHandle hHandle);
private static extern INEMO2_DeviceError INEMO2_GetBufferUsage(INEMO2_DeviceHandle hHandle, INEMO2_DeviceBuffers typeBuffer, ref double pPerc);
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, uint reg);
private static extern INEMO2_DeviceError INEMO2_SetOutput(INEMO2_DeviceHandle hHandle, ref INEMO2_Output output);
private static extern INEMO2_DeviceError INEMO2_Identify(INEMO2_DeviceHandle hDevHandle);
private static extern uint INEMO2_IsConnect(INEMO2_DeviceHandle hHandle);
private static extern INEMO2_DeviceError INEMO2_GetTrace(INEMO2_DeviceHandle hHandle, byte[] TraceData, ref int lpnSize);
private static extern INEMO2_DeviceError INEMO2_GetModules(INEMO2_DeviceHandle hDevHandle, ref INEMO2_MODULES pModules);
private static extern INEMO2_DeviceError INEMO2_GetInfoText(INEMO2_DeviceHandle hHandle, INEMO2_DeviceInfoText info, byte[] data, ref int lpnSize);
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_GetTrace(INEMO2_DeviceHandle hHandle, byte[] TraceData, ref Int32 lpnSize);
private static extern INEMO2_DeviceError INEMO2_Disconnect(INEMO2_DeviceHandle hHandle);
private static extern INEMO2_DeviceError INEMO2_RestoreDefault(INEMO2_DeviceHandle hDevHandle, INEMO2_SENSORS sensor, UInt32 reg);