ChibiOS/HAL  6.1.0
hal_serial_usb.h File Reference

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. More...
 
#define _serial_usb_driver_methods   _base_asynchronous_channel_methods
 SerialUSBDriver specific methods. More...
 
SERIAL_USB configuration options
#define SERIAL_USB_BUFFERS_SIZE   256
 Serial over USB buffers size. More...
 
#define SERIAL_USB_BUFFERS_NUMBER   2
 Serial over USB number of buffers. More...
 

Typedefs

typedef struct SerialUSBDriver SerialUSBDriver
 Structure representing a serial over USB driver. More...
 

Enumerations

Functions

void sduInit (void)
 Serial Driver initialization. More...
 
void sduObjectInit (SerialUSBDriver *sdup)
 Initializes a generic full duplex driver object. More...
 
void sduStart (SerialUSBDriver *sdup, const SerialUSBConfig *config)
 Configures and starts the driver. More...
 
void sduStop (SerialUSBDriver *sdup)
 Stops the driver. More...
 
void sduSuspendHookI (SerialUSBDriver *sdup)
 USB device suspend handler. More...
 
void sduWakeupHookI (SerialUSBDriver *sdup)
 USB device wakeup handler. More...
 
void sduConfigureHookI (SerialUSBDriver *sdup)
 USB device configured handler. More...
 
bool sduRequestsHook (USBDriver *usbp)
 Default requests hook. More...
 
void sduSOFHookI (SerialUSBDriver *sdup)
 SOF handler. More...
 
void sduDataTransmitted (USBDriver *usbp, usbep_t ep)
 Default data transmitted callback. More...
 
void sduDataReceived (USBDriver *usbp, usbep_t ep)
 Default data received callback. More...
 
void sduInterruptTransmitted (USBDriver *usbp, usbep_t ep)
 Default data received callback. More...
 
msg_t sduControl (USBDriver *usbp, unsigned int operation, void *arg)
 Control operation on a serial USB port. More...
 

Detailed Description

Serial over USB Driver macros and structures.

Definition in file hal_serial_usb.h.