49 #ifndef CDCDSERIALDRIVER_H 50 #define CDCDSERIALDRIVER_H 79 #define CDCDSerialDriver_CC_INTERFACE 0 81 #define CDCDSerialDriver_DC_INTERFACE 1 88 #if defined ( __CC_ARM ) 89 #elif defined ( __ICCARM__ ) 90 #define __attribute__(...) 91 #define __packed__ packed 92 #elif defined ( __GNUC__ ) 93 #define __packed__ aligned(1) 124 }
__attribute__ ((__packed__)) CDCDSerialDriverConfigurationDescriptors;
156 }
__attribute__ ((__packed__)) CDCDSerialDriverConfigurationDescriptorsOTG;
void CDCDSerial_GetLineCoding(CDCLineCoding *pLineCoding)
USBInterfaceDescriptor data
static void CDCDSerialDriver_GetLineCoding(CDCLineCoding *pLineCoding)
USBEndpointDescriptor dataIn
static uint32_t CDCDSerialDriver_Read(void *data, uint32_t size, TransferCallback callback, void *argument)
static uint16_t CDCDSerialDriver_GetSerialState(void)
CDCCallManagementDescriptor callManagement
static uint8_t CDCDSerialDriver_GetControlLineState(void)
USBEndpointDescriptor notification
uint16_t CDCDSerial_GetSerialState(void)
USBEndpointDescriptor dataIn
static uint32_t CDCDSerialDriver_Write(void *data, uint32_t size, TransferCallback callback, void *argument)
void CDCDSerialDriver_RequestHandler(const USBGenericRequest *request)
USBEndpointDescriptor notification
CDCHeaderDescriptor header
uint32_t CDCDSerial_Write(void *data, uint32_t size, TransferCallback callback, void *argument)
CDCUnionDescriptor union1
struct _CDCDSerialDriverConfigurationDescriptors __attribute__((__packed__)) CDCDSerialDriverConfigurationDescriptors
USBOtgDescriptor otgDescriptor
static void CDCDSerialDriver_SetSerialState(uint16_t serialState)
USBConfigurationDescriptor configuration
void CDCDSerialDriver_ConfigurationChangedHandler(uint8_t cfgnum)
void(* TransferCallback)(void *pArg, uint8_t status, uint32_t transferred, uint32_t remaining)
CDCHeaderDescriptor header
USBInterfaceDescriptor communication
CDCCallManagementDescriptor callManagement
CDCAbstractControlManagementDescriptor abstractControlManagement
CDCUnionDescriptor union1
void CDCDSerialDriver_Initialize(const USBDDriverDescriptors *pDescriptors)
USBConfigurationDescriptor configuration
USBEndpointDescriptor dataOut
uint32_t CDCDSerial_Read(void *data, uint32_t size, TransferCallback callback, void *argument)
USBInterfaceDescriptor data
CDCAbstractControlManagementDescriptor abstractControlManagement
USBEndpointDescriptor dataOut
USBInterfaceDescriptor communication
uint8_t CDCDSerial_GetControlLineState(void)
void CDCDSerial_SetSerialState(uint16_t serialState)