35 #ifndef _CDCDSERIALPORT_H_ 36 #define _CDCDSERIALPORT_H_ 63 #define CDCDSerialPort_INTERRUPT_MAXPACKETSIZE 8 65 #define CDCDSerialPort_INTERRUPT_INTERVAL_HS 8 67 #define CDCDSerialPort_INTERRUPT_INTERVAL_FS 16 69 #define CDCDSerialPort_BULK_MAXPACKETSIZE_HS 512 71 #define CDCDSerialPort_BULK_MAXPACKETSIZE_FS 64 78 #define CDCDSerialPortEvent_SETCONTROLLINESTATE 0 80 #define CDCDSerialPortEvent_SETLINECODING 1 135 uint8_t firstInterface,
136 uint8_t numInterface);
140 USBGenericDescriptor * pDescriptors, uint32_t dwLength);
148 void *pData, uint32_t dwSize,
153 void *pData, uint32_t dwSize,
168 CDCLineCoding * pLineCoding);
uint32_t CDCDSerialPort_Write(CDCDSerialPort *pCdcd, void *pData, uint32_t dwSize, TransferCallback fCallback, void *pArg)
uint16_t CDCDSerialPort_GetSerialState(const CDCDSerialPort *pCdcd)
void CDCDSerialPort_SetSerialState(CDCDSerialPort *pCdcd, uint16_t wSerialState)
uint32_t CDCDSerialPort_RequestHandler(CDCDSerialPort *pCdcd, const USBGenericRequest *request)
uint8_t CDCDSerialPort_GetControlLineState(const CDCDSerialPort *pCdcd)
void CDCDSerialPort_Initialize(CDCDSerialPort *pCdcd, USBDDriver *pUsbd, CDCDSerialPortEventHandler fEventHandler, void *pArg, uint8_t firstInterface, uint8_t numInterface)
CDCDSerialPortEventHandler fEventHandler
void(* TransferCallback)(void *pArg, uint8_t status, uint32_t transferred, uint32_t remaining)
void CDCDSerialPort_GetLineCoding(const CDCDSerialPort *pCdcd, CDCLineCoding *pLineCoding)
uint32_t(* CDCDSerialPortEventHandler)(uint32_t dwEvent, uint32_t dwParam, void *pArguments)
uint8_t bControlLineState
TransferCallback fTransCLK
USBGenericDescriptor * CDCDSerialPort_ParseInterfaces(CDCDSerialPort *pCdcd, USBGenericDescriptor *pDescriptors, uint32_t dwLength)
struct _CDCDSerialPort CDCDSerialPort
uint32_t CDCDSerialPort_Read(const CDCDSerialPort *pCdcd, void *pData, uint32_t dwSize, TransferCallback fCallback, void *pArg)