52 #define CDC_EVENT_OPEN 1 53 #define CDC_EVENT_CLOSE 2 60 #define USBREQ_GET_LINE_CODING 0x21 61 #define USBREQ_SET_LINE_CODING 0x20 62 #define USBREQ_SET_CONTROL_LINE_STATE 0x22 64 #define USB_GET_LINE_CODING_SIZE 0x07 65 #define CDC_DEACTIVATE_CARRIER 0x00 66 #define CDC_ACTIVATE_CARRIER 0x03 78 #define USBH_EVENT_RX_CDC_DATA USBH_CDC_EVENT_BASE + 16 83 #define USBH_EVENT_TX_CDC_DATA USBH_CDC_EVENT_BASE + 17 156 uint8_t *pui8Data, uint32_t ui32Size);
160 uint8_t *pui8Data, uint32_t ui32Size);
This is a vendor specific device.
Definition: usbhcdc.h:137
This is Ethernet Networking Control device.
Definition: usbhcdc.h:127
This is CAPI control device.
Definition: usbhcdc.h:122
struct tCDCInstance tCDCInstance
Definition: usbhcdc.h:44
tCDCInstance * USBHCDCOpen(tCDCSubClassProtocol iDeviceType, tUSBCallback pfnCallback, void *pvCBData)
Definition: usbhcdc.c:147
tCDCSubClassProtocol
Definition: usbhcdc.h:91
void USBHCDCClose(tCDCInstance *psCDCInstance)
Definition: usbhcdc.c:196
This is ATM Networking control device.
Definition: usbhcdc.h:132
This is multi-channel control device.
Definition: usbhcdc.h:117
uint32_t USBHCDCGetLineCoding(tCDCInstance *psCDCInstance, uint8_t *pui8Buffer, uint32_t ui32Size)
Definition: usbhcdc.c:514
uint32_t USBHCDCSetLineCoding(tCDCInstance *psCDCInstance, uint8_t *pui8Data)
Definition: usbhcdc.c:567
uint32_t USBHCDCSetControlLineState(tCDCInstance *psCDCInstance, uint16_t carrierValue)
Definition: usbhcdc.c:621
This is a direct line control device.
Definition: usbhcdc.h:102
Definition: usbhost.h:156
uint32_t(* tUSBCallback)(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgParam, void *pvMsgData)
Definition: usblib.h:1220
uint32_t USBHCDCReadData(tCDCInstance *psCDCInstance, uint32_t ui32Interface, uint8_t *pui8Data, uint32_t ui32Size)
Definition: usbhcdc.c:686
const tUSBHostClassDriver g_sUSBCDCClassDriver
Definition: usbhcdc.c:112
This is telephone control device.
Definition: usbhcdc.h:112
This is a abstract control device.
Definition: usbhcdc.h:107
uint32_t USBHCDCWriteData(tCDCInstance *psCDCInstance, uint32_t ui32Interface, uint8_t *pui8Data, uint32_t ui32Size)
Definition: usbhcdc.c:722