X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/234d0a39eb3e261a1ddfcea31d7104e3400b2491..c75f8bf2236bc69511d0ff0bc79bfaf1f62e3bfd:/LUFA/Drivers/USB/Class/Host/CDC.h diff --git a/LUFA/Drivers/USB/Class/Host/CDC.h b/LUFA/Drivers/USB/Class/Host/CDC.h index 292411be4..3bc814daf 100644 --- a/LUFA/Drivers/USB/Class/Host/CDC.h +++ b/LUFA/Drivers/USB/Class/Host/CDC.h @@ -50,6 +50,37 @@ #endif /* Public Interface - May be used in end-application: */ + /* Type Defines: */ + typedef struct + { + bool IsActive; /**< Indicates if this class driver is currently attached to the device */ + + uint8_t ControlInterfaceNumber; /**< Interface number of the CDC control interface within the device */ + + uint8_t DataINPipeNumber; /**< Pipe number of the CDC interface's IN data pipe */ + uint16_t DataINPipeSize; /**< Size in bytes of the CDC interface's IN data pipe */ + + uint8_t DataOUTPipeNumber; /**< Pipe number of the CDC interface's OUT data pipe */ + uint16_t DataOUTPipeSize; /**< Size in bytes of the CDC interface's OUT data pipe */ + + uint8_t NotificationEndpointNumber; /**< Pipe number of the CDC interface's IN notification endpoint, if used */ + uint16_t NotificationEndpointSize; /**< Size in bytes of the CDC interface's IN notification endpoint, if used */ + + uint8_t ControlLineState; /**< Current control line states */ + + struct + { + uint32_t BaudRateBPS; /**< Baud rate of the virtual serial port, in bits per second */ + uint8_t CharFormat; /**< Character format of the virtual serial port, a value from the + * CDCDevice_CDC_LineCodingFormats_t enum + */ + uint8_t ParityType; /**< Parity setting of the virtual serial port, a value from the + * CDCDevice_LineCodingParity_t enum + */ + uint8_t DataBits; /**< Bits of data per character of the virtual serial port */ + } LineEncoding; + } USB_ClassInfo_CDC_Host_t; + /* Function Prototypes: */ void CDC_Host_Task(void);