API
ArcusPerformaxDriver.c File Reference
Include dependency graph for ArcusPerformaxDriver.c:

Go to the source code of this file.

Macros

#define AR_FALSE   0
 
#define AR_TRUE   1
 

Functions

int _is_performax_device_by_vendor_product (int vendor, int product)
 
int _is_performax_device (struct libusb_device_descriptor *descriptor)
 
AR_BOOL fnPerformaxComGetNumDevices (AR_DWORD *numDevices)
 
int _get_libusb_device_offset_from_arcos_offset (libusb_device **list, ssize_t list_count, struct libusb_device_descriptor *descriptor, AR_DWORD dwNumDevice)
 
AR_BOOL fnPerformaxComGetProductString (AR_DWORD dwNumDevice, AR_VOID *lpDeviceString, AR_DWORD dwOptions)
 
int _send_urb_control (AR_HANDLE device_handle, int id)
 
AR_BOOL fnPerformaxComOpen (AR_DWORD dwDeviceNum, AR_HANDLE *device_handle)
 
AR_BOOL fnPerformaxComClose (AR_HANDLE device_handle)
 
AR_BOOL fnPerformaxComSetTimeouts (AR_DWORD dwReadTimeout, AR_DWORD dwWriteTimeout)
 
AR_BOOL fnPerformaxComSendRecv (AR_HANDLE device_handle, AR_VOID *wBuffer, AR_DWORD dwNumBytesToWrite, AR_DWORD dwNumBytesToRead, AR_VOID *rBuffer)
 
AR_BOOL fnPerformaxComFlush (AR_HANDLE device_handle)
 
AR_BOOL InitializePerformaxLibrary (AR_VOID)
 

Variables

struct libusb_context * usb_context = 0
 
AR_DWORD libusb_ReadTimeout = 0
 
AR_DWORD libusb_WriteTimeout = 0
 

Macro Definition Documentation

◆ AR_FALSE

#define AR_FALSE   0

Definition at line 16 of file ArcusPerformaxDriver.c.

◆ AR_TRUE

#define AR_TRUE   1

Definition at line 17 of file ArcusPerformaxDriver.c.

Function Documentation

◆ _get_libusb_device_offset_from_arcos_offset()

int _get_libusb_device_offset_from_arcos_offset ( libusb_device **  list,
ssize_t  list_count,
struct libusb_device_descriptor *  descriptor,
AR_DWORD  dwNumDevice 
)

Definition at line 67 of file ArcusPerformaxDriver.c.

Referenced by fnPerformaxComGetProductString(), and fnPerformaxComOpen().

◆ _is_performax_device()

int _is_performax_device ( struct libusb_device_descriptor *  descriptor)

◆ _is_performax_device_by_vendor_product()

int _is_performax_device_by_vendor_product ( int  vendor,
int  product 
)

Definition at line 21 of file ArcusPerformaxDriver.c.

Referenced by _is_performax_device().

◆ _send_urb_control()

int _send_urb_control ( AR_HANDLE  device_handle,
int  id 
)

◆ fnPerformaxComClose()

AR_BOOL fnPerformaxComClose ( AR_HANDLE  device_handle)

Definition at line 177 of file ArcusPerformaxDriver.c.

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

◆ fnPerformaxComFlush()

AR_BOOL fnPerformaxComFlush ( AR_HANDLE  device_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 device_handle 
)

Definition at line 144 of file ArcusPerformaxDriver.c.

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

◆ fnPerformaxComSendRecv()

AR_BOOL fnPerformaxComSendRecv ( AR_HANDLE  device_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()

Variable Documentation

◆ libusb_ReadTimeout

AR_DWORD libusb_ReadTimeout = 0

Definition at line 13 of file ArcusPerformaxDriver.c.

Referenced by fnPerformaxComSendRecv(), and fnPerformaxComSetTimeouts().

◆ libusb_WriteTimeout

AR_DWORD libusb_WriteTimeout = 0

◆ usb_context

struct libusb_context* usb_context = 0