ChibiOS/HAL  6.1.0
USBConfig Struct Reference

Type of an USB driver configuration structure. More...

#include <hal_usb_lld.h>

Collaboration diagram for USBConfig:
Collaboration graph

Data Fields

usbeventcb_t event_cb
 USB events callback. More...
 
usbgetdescriptor_t get_descriptor_cb
 Device GET_DESCRIPTOR request callback. More...
 
usbreqhandler_t requests_hook_cb
 Requests hook callback. More...
 
usbcallback_t sof_cb
 Start Of Frame callback. More...
 

Detailed Description

Type of an USB driver configuration structure.

Definition at line 190 of file hal_usb_lld.h.

Field Documentation

usbeventcb_t USBConfig::event_cb

USB events callback.

This callback is invoked when an USB driver event is registered.

Definition at line 195 of file hal_usb_lld.h.

usbgetdescriptor_t USBConfig::get_descriptor_cb

Device GET_DESCRIPTOR request callback.

Note
This callback is mandatory and cannot be set to NULL.

Definition at line 200 of file hal_usb_lld.h.

Referenced by default_handler().

usbreqhandler_t USBConfig::requests_hook_cb

Requests hook callback.

This hook allows to be notified of standard requests or to handle non standard requests.

Definition at line 206 of file hal_usb_lld.h.

Referenced by _usb_ep0setup().

usbcallback_t USBConfig::sof_cb

Start Of Frame callback.

Definition at line 210 of file hal_usb_lld.h.