USBD_Callbacks_TypeDef Struct Reference
USB Device stack callback structure.
#include <em_usb.h>
Data Fields |
|
const USBD_UsbResetCb_TypeDef | usbReset |
Called whenever USB reset signalling is detected on the USB port.
|
|
const USBD_DeviceStateChangeCb_TypeDef | usbStateChange |
Called whenever the device change state.
|
|
const USBD_SetupCmdCb_TypeDef | setupCmd |
Called on each setup request received from host.
|
|
const USBD_IsSelfPoweredCb_TypeDef | isSelfPowered |
Called whenever the device stack needs to query if the device is currently self- or bus-powered.
|
|
const USBD_SofIntCb_TypeDef | sofInt |
Called at each SOF interrupt.
|
|
USB Device stack callback structure.
Callback functions used by the device stack to signal events or query status to/from the application. See USBD_Init_TypeDef . Assign members to NULL if your application don't need a specific callback.
Field Documentation
◆ usbReset
const USBD_UsbResetCb_TypeDef USBD_Callbacks_TypeDef::usbReset |
Called whenever USB reset signalling is detected on the USB port.
◆ usbStateChange
const USBD_DeviceStateChangeCb_TypeDef USBD_Callbacks_TypeDef::usbStateChange |
Called whenever the device change state.
◆ setupCmd
const USBD_SetupCmdCb_TypeDef USBD_Callbacks_TypeDef::setupCmd |
Called on each setup request received from host.
◆ isSelfPowered
const USBD_IsSelfPoweredCb_TypeDef USBD_Callbacks_TypeDef::isSelfPowered |
Called whenever the device stack needs to query if the device is currently self- or bus-powered.
Applies to devices which can operate in both modes.
◆ sofInt
const USBD_SofIntCb_TypeDef USBD_Callbacks_TypeDef::sofInt |
Called at each SOF interrupt.
If NULL, the device stack will not enable the SOF interrupt.