00001 #ifndef __CUSB 00002 #define __CUSB 00003 00004 #include "cphidget.h" 00005 #include "cphidgetlist.h" 00006 00007 #ifndef EXTERNALPROTO 00008 int CUSBBuildList(CPhidgetList **curList); 00009 int CUSBOpenHandle(CPhidgetHandle phid); 00010 int CUSBCloseHandle(CPhidgetHandle phid); 00011 int CUSBSetLabel(CPhidgetHandle phid, char *buffer); 00012 void CUSBCleanup(); 00013 int CUSBSetupNotifications(); 00014 int CUSBRefreshLabelString(CPhidgetHandle phid); 00015 int CUSBGetString(CPhidgetHandle phid, int index, char *str); 00016 #if defined(_LINUX) && !defined(_ANDROID) 00017 void CUSBUninit(); 00018 #else 00019 int CUSBGetDeviceCapabilities(CPhidgetHandle phid, HANDLE DeviceHandle); 00020 #endif 00021 #endif 00022 00023 #ifdef _IPHONE 00024 int CPhidgetManager_setupNotifications(CFRunLoopRef runloop); 00025 int CPhidgetManager_teardownNotifications(); 00026 int reenumerateDevice(CPhidgetHandle phid); 00027 #endif 00028 00029 PHIDGET21_API int CCONV CUSBReadPacket(CPhidgetHandle phidA, unsigned char *buffer); 00030 PHIDGET21_API int CCONV CUSBSendPacket(CPhidgetHandle phidA, unsigned char *buffer); 00031 00032 #if defined(_ANDROID) 00033 #include "com_phidgets_usb_Manager.h" 00034 #endif 00035 00036 #endif