diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-04-14 12:56:48 +0100 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-04-14 12:56:48 +0100 |
commit | 0b624384cd52be20e61284551d832b499d7b7707 (patch) | |
tree | 6f95a4bbef47abc9720b96c0722e8f632aef228a /cusb.h | |
download | libphidget21-0b624384cd52be20e61284551d832b499d7b7707.tar.gz |
Imported Upstream version 2.1.8.20120216upstream/2.1.8.20120216
Diffstat (limited to '')
-rw-r--r-- | cusb.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +#ifndef __CUSB +#define __CUSB + +#include "cphidget.h" +#include "cphidgetlist.h" + +#ifndef EXTERNALPROTO +int CUSBBuildList(CPhidgetList **curList); +int CUSBOpenHandle(CPhidgetHandle phid); +int CUSBCloseHandle(CPhidgetHandle phid); +int CUSBSetLabel(CPhidgetHandle phid, char *buffer); +void CUSBCleanup(); +int CUSBSetupNotifications(); +int CUSBRefreshLabelString(CPhidgetHandle phid); +#if defined(_LINUX) && !defined(_ANDROID) +int CUSBGetDeviceCapabilities(CPhidgetHandle phid, struct usb_device *dev, + struct usb_dev_handle *udev); +#else +int CUSBGetDeviceCapabilities(CPhidgetHandle phid, HANDLE DeviceHandle); +#endif +#endif + +PHIDGET21_API int CCONV CUSBReadPacket(CPhidgetHandle phidA, unsigned char *buffer); +PHIDGET21_API int CCONV CUSBSendPacket(CPhidgetHandle phidA, unsigned char *buffer); + +#if defined(_ANDROID) +#include "com_phidgets_usb_Manager.h" +#endif + +#endif |