ChibiOS/HAL  6.1.0
SerialUSBConfig Struct Reference

Serial over USB Driver configuration structure. More...

#include <hal_serial_usb.h>

Collaboration diagram for SerialUSBConfig:
Collaboration graph

Data Fields

USBDriverusbp
 USB driver to use. More...
 
usbep_t bulk_in
 Bulk IN endpoint used for outgoing data transfer. More...
 
usbep_t bulk_out
 Bulk OUT endpoint used for incoming data transfer. More...
 
usbep_t int_in
 Interrupt IN endpoint used for notifications. More...
 

Detailed Description

Serial over USB Driver configuration structure.

An instance of this structure must be passed to sduStart() in order to configure and start the driver operations.

Definition at line 95 of file hal_serial_usb.h.

Field Documentation

USBDriver* SerialUSBConfig::usbp

USB driver to use.

Definition at line 99 of file hal_serial_usb.h.

Referenced by sduStart().

usbep_t SerialUSBConfig::bulk_in

Bulk IN endpoint used for outgoing data transfer.

Definition at line 103 of file hal_serial_usb.h.

Referenced by sduStart().

usbep_t SerialUSBConfig::bulk_out

Bulk OUT endpoint used for incoming data transfer.

Definition at line 107 of file hal_serial_usb.h.

Referenced by sduStart().

usbep_t SerialUSBConfig::int_in

Interrupt IN endpoint used for notifications.

Note
If set to zero then the INT endpoint is assumed to be not present, USB descriptors must be changed accordingly.

Definition at line 113 of file hal_serial_usb.h.

Referenced by sduStart().