50 #define kUSBHID_sendStarted USBHID_SEND_STARTED
51 #define kUSBHID_sendComplete USBHID_SEND_COMPLETE
52 #define kUSBHID_intfBusyError USBHID_INTERFACE_BUSY_ERROR
53 #define kUSBHID_receiveStarted USBHID_RECEIVE_STARTED
54 #define kUSBHID_receiveCompleted USBHID_RECEIVE_COMPLETED
55 #define kUSBHID_receiveInProgress USBHID_RECEIVE_IN_PROGRESS
56 #define kUSBHID_generalError USBHID_GENERAL_ERROR
57 #define kUSBHID_busNotAvailable USBHID_BUS_NOT_AVAILABLE
58 #define kUSBHID_waitingForSend USBHID_WAITING_FOR_SEND
59 #define kUSBHID_waitingForReceive USBHID_WAITING_FOR_RECEIVE
60 #define kUSBHID_dataWaiting USBHID_DATA_WAITING
61 #define kUSB_allHidEvents USBHID_ALL_HID_EVENTS
62 #define kUSBHID_noDataWaiting USBHID_NO_DATA_WAITING
64 #define USBHID_intfStatus USBHID_getInterfaceStatus
65 #define USBHID_bytesInUSBBuffer USBHID_getBytesInUSBBuffer
71 #define USBHID_SEND_STARTED 0x01
72 #define USBHID_SEND_COMPLETE 0x02
73 #define USBHID_INTERFACE_BUSY_ERROR 0x03
74 #define USBHID_RECEIVE_STARTED 0x04
75 #define USBHID_RECEIVE_COMPLETED 0x05
76 #define USBHID_RECEIVE_IN_PROGRESS 0x06
77 #define USBHID_GENERAL_ERROR 0x07
78 #define USBHID_BUS_NOT_AVAILABLE 0x08
79 #define HID_BOOT_PROTOCOL 0x00
80 #define HID_REPORT_PROTOCOL 0x01
82 #define USBHID_NO_DATA_WAITING 1
83 #define USBHID_WAITING_FOR_SEND 0x01
84 #define USBHID_WAITING_FOR_RECEIVE 0x02
85 #define USBHID_DATA_WAITING 0x04
86 #define USBHID_BUS_NOT_AVAILABLE 0x08
87 #define USBHID_ALL_HID_EVENTS 0xFF
89 #define USBHID_handleGetReport USBHID_handleEP0GetReport
90 #define USBHID_handleSetReport USBHID_handleEP0SetReport
91 #define USBHID_handleSetReportDataAvailable USBHID_handleEP0SetReportDataAvailable
92 #define USBHID_handleSetReportDataAvailable USBHID_handleEP0SetReportDataAvailable
210 uint8_t
USBHID_sendData (
const uint8_t* data, uint16_t size, uint8_t intfNum);
530 uint16_t requestedLength,
566 uint16_t requestedLength,
uint8_t USBHID_handleReceiveCompleted(uint8_t intfNum)
uint8_t USBHID_getBytesInUSBBuffer(uint8_t intfNum)
uint8_t USBHID_handleBootProtocol(uint8_t protocol, uint8_t intfnum)
uint8_t USBHID_rejectData(uint8_t intfNum)
uint8_t USBHID_receiveReport(uint8_t *reportData, uint8_t intfNum)
uint8_t USBHID_handleSendCompleted(uint8_t intfNum)
uint8_t USBHID_getInterfaceStatus(uint8_t intfNum, uint16_t *bytesSent, uint16_t *bytesReceived)
uint8_t USBHID_handleDataReceived(uint8_t intfNum)
uint8_t * USBHID_handleEP0SetReport(uint8_t reportType, uint8_t reportId, uint16_t requestedLength, uint8_t intfnum)
uint8_t USBHID_abortSend(uint16_t *size, uint8_t intfNum)
uint8_t * USBHID_handleEP0GetReport(uint8_t reportType, uint8_t reportId, uint16_t requestedLength, uint8_t intfnum)
uint8_t USBHID_sendData(const uint8_t *data, uint16_t size, uint8_t intfNum)
uint8_t USBHID_handleEP0SetReportDataAvailable(uint8_t intfnum)
uint8_t USBHID_sendReport(const uint8_t *reportData, uint8_t intfNum)
uint8_t USBHID_abortReceive(uint16_t *size, uint8_t intfNum)
uint8_t USBHID_receiveData(uint8_t *data, uint16_t size, uint8_t intfNum)