API
ArcusPerformaxDriver.h File Reference
#include "libusb-1.0/libusb.h"
Include dependency graph for ArcusPerformaxDriver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PERFORMAX_RETURN_SERIAL_NUMBER   0x0
 
#define PERFORMAX_RETURN_DESCRIPTION   0x1
 
#define PERFORMAX_MAX_DEVICE_STRLEN   256
 

Typedefs

typedef int AR_BOOL
 
typedef long AR_DWORD
 
typedef void AR_VOID
 
typedef libusb_device_handle * AR_HANDLE
 

Functions

AR_BOOL fnPerformaxComGetNumDevices (AR_DWORD *numDevices)
 
AR_BOOL fnPerformaxComGetProductString (AR_DWORD dwNumDevice, AR_VOID *lpDeviceString, AR_DWORD dwOptions)
 
AR_BOOL fnPerformaxComOpen (AR_DWORD dwDeviceNum, AR_HANDLE *pHandle)
 
AR_BOOL fnPerformaxComClose (AR_HANDLE pHandle)
 
AR_BOOL fnPerformaxComSetTimeouts (AR_DWORD dwReadTimeout, AR_DWORD dwWriteTimeout)
 
AR_BOOL fnPerformaxComSendRecv (AR_HANDLE Handle, AR_VOID *wBuffer, AR_DWORD dwNumBytesToWrite, AR_DWORD dwNumBytesToRead, AR_VOID *rBuffer)
 
AR_BOOL fnPerformaxComFlush (AR_HANDLE Handle)
 
AR_BOOL InitializePerformaxLibrary (AR_VOID)
 

Macro Definition Documentation

◆ PERFORMAX_MAX_DEVICE_STRLEN

#define PERFORMAX_MAX_DEVICE_STRLEN   256

Definition at line 10 of file ArcusPerformaxDriver.h.

◆ PERFORMAX_RETURN_DESCRIPTION

#define PERFORMAX_RETURN_DESCRIPTION   0x1

Definition at line 9 of file ArcusPerformaxDriver.h.

◆ PERFORMAX_RETURN_SERIAL_NUMBER

#define PERFORMAX_RETURN_SERIAL_NUMBER   0x0

Definition at line 8 of file ArcusPerformaxDriver.h.

Typedef Documentation

◆ AR_BOOL

typedef int AR_BOOL

Definition at line 14 of file ArcusPerformaxDriver.h.

◆ AR_DWORD

typedef long AR_DWORD

Definition at line 15 of file ArcusPerformaxDriver.h.

◆ AR_HANDLE

typedef libusb_device_handle* AR_HANDLE

Definition at line 18 of file ArcusPerformaxDriver.h.

◆ AR_VOID

typedef void AR_VOID

Definition at line 16 of file ArcusPerformaxDriver.h.

Function Documentation

◆ fnPerformaxComClose()

AR_BOOL fnPerformaxComClose ( AR_HANDLE  pHandle)

Definition at line 177 of file ArcusPerformaxDriver.c.

Referenced by MagAOX::app::acesxeCtrl::appLogic().

◆ fnPerformaxComFlush()

AR_BOOL fnPerformaxComFlush ( AR_HANDLE  Handle)

Definition at line 241 of file ArcusPerformaxDriver.c.

Referenced by MagAOX::app::acesxeCtrl::appLogic().

◆ fnPerformaxComGetNumDevices()

AR_BOOL fnPerformaxComGetNumDevices ( AR_DWORD numDevices)

Definition at line 36 of file ArcusPerformaxDriver.c.

Referenced by MagAOX::app::acesxeCtrl::appLogic().

◆ fnPerformaxComGetProductString()

AR_BOOL fnPerformaxComGetProductString ( AR_DWORD  dwNumDevice,
AR_VOID lpDeviceString,
AR_DWORD  dwOptions 
)

Definition at line 88 of file ArcusPerformaxDriver.c.

Referenced by MagAOX::app::acesxeCtrl::appLogic().

◆ fnPerformaxComOpen()

AR_BOOL fnPerformaxComOpen ( AR_DWORD  dwDeviceNum,
AR_HANDLE pHandle 
)

Definition at line 144 of file ArcusPerformaxDriver.c.

Referenced by MagAOX::app::acesxeCtrl::appLogic().

◆ fnPerformaxComSendRecv()

AR_BOOL fnPerformaxComSendRecv ( AR_HANDLE  Handle,
AR_VOID wBuffer,
AR_DWORD  dwNumBytesToWrite,
AR_DWORD  dwNumBytesToRead,
AR_VOID rBuffer 
)

◆ fnPerformaxComSetTimeouts()

AR_BOOL fnPerformaxComSetTimeouts ( AR_DWORD  dwReadTimeout,
AR_DWORD  dwWriteTimeout 
)

Definition at line 195 of file ArcusPerformaxDriver.c.

Referenced by MagAOX::app::acesxeCtrl::appStartup().

◆ InitializePerformaxLibrary()