1 #ifndef __USBH_CDC_FUNCT_H__ 2 #define __USBH_CDC_FUNCT_H__ 3 4 #include <stdint.h> 5 6 7 typedef struct __attribute__((packed)) { 8 uint32_t dwDTERate; // Data terminal rate, in bits per second 9 uint8_t bCharFormat; // Stop bits, 0 - 1 Stop bit, 1 - 1.5 Stop bits, 2 - 2 Stop bits 10 uint8_t bParityType; // Parity, 0 - None, 1 - Odd, 2 - Even, 3 - Mark, 4 - Space 11 uint8_t bDataBits; // Data bits (5, 6, 7, 8 or 16) 12 } CDC_LineCoding_t; 13 14 15 16 USBH_Status USBH_CDC_GetLineCoding(USBH_Info_t *phost); 17 USBH_Status USBH_CDC_SetLineCoding(USBH_Info_t *phost); 18 USBH_Status USBH_CDC_SetControlLine(USBH_Info_t *phost); 19 void USBH_CDC_IssueSetLineCoding(USBH_Info_t *phost); 20 void USBH_CDC_IssueGetLineCoding(USBH_Info_t *phost); 21 22 23 #endif // __USBH_CDC_FUNCT_H__ 24