ChibiOS/HAL 9.0.0
|
Serial over USB Driver macros and structures. More...
#include "hal_usb_cdc.h"
Go to the source code of this file.
Data Structures | |
struct | SerialUSBConfig |
Serial over USB Driver configuration structure. More... | |
struct | SerialUSBDriverVMT |
SerialDriver virtual methods table. More... | |
struct | SerialUSBDriver |
Full duplex serial driver class. More... |
Macros | |
#define | _serial_usb_driver_data |
SerialDriver specific data. | |
#define | _serial_usb_driver_methods _base_asynchronous_channel_methods |
SerialUSBDriver specific methods. | |
SERIAL_USB configuration options | |
#define | SERIAL_USB_BUFFERS_SIZE 256 |
Serial over USB buffers size. | |
#define | SERIAL_USB_BUFFERS_NUMBER 2 |
Serial over USB number of buffers. |
Typedefs | |
typedef struct SerialUSBDriver | SerialUSBDriver |
Structure representing a serial over USB driver. |
Enumerations | |
enum | sdustate_t { SDU_UNINIT = 0 , SDU_STOP = 1 , SDU_READY = 2 } |
Driver state machine possible states. More... |
Functions | |
void | sduInit (void) |
Serial Driver initialization. | |
void | sduObjectInit (SerialUSBDriver *sdup) |
Initializes a generic full duplex driver object. | |
msg_t | sduStart (SerialUSBDriver *sdup, const SerialUSBConfig *config) |
Configures and starts the driver. | |
void | sduStop (SerialUSBDriver *sdup) |
Stops the driver. | |
void | sduSuspendHookI (SerialUSBDriver *sdup) |
USB device suspend handler. | |
void | sduWakeupHookI (SerialUSBDriver *sdup) |
USB device wakeup handler. | |
void | sduConfigureHookI (SerialUSBDriver *sdup) |
USB device configured handler. | |
bool | sduRequestsHook (USBDriver *usbp) |
Default requests hook. | |
void | sduSOFHookI (SerialUSBDriver *sdup) |
SOF handler. | |
void | sduDataTransmitted (USBDriver *usbp, usbep_t ep) |
Default data transmitted callback. | |
void | sduDataReceived (USBDriver *usbp, usbep_t ep) |
Default data received callback. | |
void | sduInterruptTransmitted (USBDriver *usbp, usbep_t ep) |
Default data received callback. | |
msg_t | sduControl (USBDriver *usbp, unsigned int operation, void *arg) |
Control operation on a serial USB port. |
Serial over USB Driver macros and structures.
Definition in file hal_serial_usb.h.