USBD_Callbacks_TypeDef Struct Reference
USB Device stack callback structure.
#include <
em_usb.h
>
Data Fields |
|
const USBD_UsbResetCb_TypeDef | usbReset |
const USBD_DeviceStateChangeCb_TypeDef | usbStateChange |
const USBD_SetupCmdCb_TypeDef | setupCmd |
const USBD_IsSelfPoweredCb_TypeDef | isSelfPowered |
const USBD_SofIntCb_TypeDef | sofInt |
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
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.
const USBD_SetupCmdCb_TypeDef USBD_Callbacks_TypeDef::setupCmd |
Called on each setup request received from host.
const USBD_SofIntCb_TypeDef USBD_Callbacks_TypeDef::sofInt |
Called at each SOF interrupt. If NULL, the device stack will not enable the SOF interrupt.
const USBD_UsbResetCb_TypeDef USBD_Callbacks_TypeDef::usbReset |
Called whenever USB reset signalling is detected on the USB port.
const USBD_DeviceStateChangeCb_TypeDef USBD_Callbacks_TypeDef::usbStateChange |
Called whenever the device change state.
The documentation for this struct was generated from the following file:
-
em_usb.h