aboutsummaryrefslogtreecommitdiffstats
path: root/cusb.h
blob: 1a619fd834ce87e7b20857e7b4057fb2e120f0b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#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);
int CUSBGetString(CPhidgetHandle phid, int index, char *str);
#if defined(_LINUX) && !defined(_ANDROID)
void CUSBUninit();
#else
int CUSBGetDeviceCapabilities(CPhidgetHandle phid, HANDLE DeviceHandle);
#endif
#endif

#ifdef _IPHONE
int CPhidgetManager_setupNotifications(CFRunLoopRef runloop);
int CPhidgetManager_teardownNotifications();
int reenumerateDevice(CPhidgetHandle phid);
#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