USB Component  Version 6.13.6
MDK Middleware for USB Device and Host Communication
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
USBD_Driver: Driver Functions

Events generated by USB Device - Driver functions. More...

Functions

__STATIC_INLINE void EvrUSBD_Driver_Initialize (uint8_t device)
 Event on ARM_USBD_Initialize finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_InitializeFailed (uint8_t device, int32_t error)
 Event on ARM_USBD_Initialize failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_Uninitialize (uint8_t device)
 Event on ARM_USBD_Uninitialize finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_UninitializeFailed (uint8_t device, int32_t error)
 Event on ARM_USBD_Uninitialize failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_PowerControl (uint8_t device, ARM_POWER_STATE state)
 Event on ARM_USBD_PowerControl finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_PowerControlFailed (uint8_t device, ARM_POWER_STATE state, int32_t error)
 Event on ARM_USBD_PowerControl failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceConnect (uint8_t device)
 Event on ARM_USBD_DeviceConnect finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceConnectFailed (uint8_t device, int32_t error)
 Event on ARM_USBD_DeviceConnect failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceDisconnect (uint8_t device)
 Event on ARM_USBD_DeviceDisconnect finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceDisconnectFailed (uint8_t device, int32_t error)
 Event on ARM_USBD_DeviceDisconnect failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceGetState (uint8_t device, ARM_USBD_STATE state)
 Event on ARM_USBD_DeviceGetState finished (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceRemoteWakeup (uint8_t device)
 Event on ARM_USBD_DeviceRemoteWakeup finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceRemoteWakeupFailed (uint8_t device, int32_t error)
 Event on ARM_USBD_DeviceRemoteWakeup failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceSetAddress (uint8_t device, uint8_t dev_addr)
 Event on ARM_USBD_DeviceSetAddress finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_DeviceSetAddressFailed (uint8_t device, uint8_t dev_addr, int32_t error)
 Event on ARM_USBD_DeviceSetAddress failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_ReadSetupPacket (uint8_t device, const void *setup_packet)
 Event on ARM_USBD_ReadSetupPacket finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_ReadSetupPacketFailed (uint8_t device, int32_t error)
 Event on ARM_USBD_ReadSetupPacket failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointConfigure (uint8_t device, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_max_packet_size)
 Event on ARM_USBD_EndpointConfigure finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointConfigureFailed (uint8_t device, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_max_packet_size, int32_t error)
 Event on ARM_USBD_EndpointConfigure failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointUnconfigure (uint8_t device, uint8_t ep_addr)
 Event on ARM_USBD_EndpointUnconfigure finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointUnconfigureFailed (uint8_t device, uint8_t ep_addr, int32_t error)
 Event on ARM_USBD_EndpointUnconfigure failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointStall (uint8_t device, uint8_t ep_addr, bool stall)
 Event on ARM_USBD_EndpointStall finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointStallFailed (uint8_t device, uint8_t ep_addr, bool stall, int32_t error)
 Event on ARM_USBD_EndpointStall failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransfer (uint8_t device, uint8_t ep_addr, const uint8_t *data, uint32_t num)
 Event on ARM_USBD_EndpointTransfer finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferFailed (uint8_t device, uint8_t ep_addr, int32_t error)
 Event on ARM_USBD_EndpointTransfer failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferGetResult (uint8_t device, uint8_t ep_addr, uint32_t num)
 Event on ARM_USBD_EndpointTransferGetResult finished (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferAbort (uint8_t device, uint8_t ep_addr)
 Event on ARM_USBD_EndpointTransferAbort finished successfully (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferAbortFailed (uint8_t device, uint8_t ep_addr, int32_t error)
 Event on ARM_USBD_EndpointTransferAbort failed (Error) More...
 
__STATIC_INLINE void EvrUSBD_Driver_GetFrameNumber (uint8_t device, uint16_t frame_number)
 Event on ARM_USBD_GetFrameNumber finished (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_OnSignalDeviceEvent (uint8_t device, uint32_t event)
 Event on ARM_USBD_SignalDeviceEvent callback start (API) More...
 
__STATIC_INLINE void EvrUSBD_Driver_OnSignalEndpointEvent (uint8_t device, uint8_t ep_addr, uint32_t event)
 Event on ARM_USBD_SignalEndpointEvent callback start (API) More...
 

Description

Events generated by USB Device - Driver functions.

Function Documentation

__STATIC_INLINE void EvrUSBD_Driver_DeviceConnect ( uint8_t  device)

Event on ARM_USBD_DeviceConnect finished successfully (API)

Parameters
devicedevice index
__STATIC_INLINE void EvrUSBD_Driver_DeviceConnectFailed ( uint8_t  device,
int32_t  error 
)

Event on ARM_USBD_DeviceConnect failed (Error)

Parameters
devicedevice index
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_DeviceDisconnect ( uint8_t  device)

Event on ARM_USBD_DeviceDisconnect finished successfully (API)

Parameters
devicedevice index
__STATIC_INLINE void EvrUSBD_Driver_DeviceDisconnectFailed ( uint8_t  device,
int32_t  error 
)

Event on ARM_USBD_DeviceDisconnect failed (Error)

Parameters
devicedevice index
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_DeviceGetState ( uint8_t  device,
ARM_USBD_STATE  state 
)

Event on ARM_USBD_DeviceGetState finished (API)

Parameters
devicedevice index
statedevice state ARM_USBD_STATE
__STATIC_INLINE void EvrUSBD_Driver_DeviceRemoteWakeup ( uint8_t  device)

Event on ARM_USBD_DeviceRemoteWakeup finished successfully (API)

Parameters
devicedevice index
__STATIC_INLINE void EvrUSBD_Driver_DeviceRemoteWakeupFailed ( uint8_t  device,
int32_t  error 
)

Event on ARM_USBD_DeviceRemoteWakeup failed (Error)

Parameters
devicedevice index
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_DeviceSetAddress ( uint8_t  device,
uint8_t  dev_addr 
)

Event on ARM_USBD_DeviceSetAddress finished successfully (API)

Parameters
devicedevice index
dev_addrdevice address
__STATIC_INLINE void EvrUSBD_Driver_DeviceSetAddressFailed ( uint8_t  device,
uint8_t  dev_addr,
int32_t  error 
)

Event on ARM_USBD_DeviceSetAddress failed (Error)

Parameters
devicedevice index
dev_addrdevice address
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_EndpointConfigure ( uint8_t  device,
uint8_t  ep_addr,
uint8_t  ep_type,
uint16_t  ep_max_packet_size 
)

Event on ARM_USBD_EndpointConfigure finished successfully (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
ep_typeendpoint type (ARM_USB_ENDPOINT_xxx)
ep_max_packet_sizeendpoint maximum packet size
__STATIC_INLINE void EvrUSBD_Driver_EndpointConfigureFailed ( uint8_t  device,
uint8_t  ep_addr,
uint8_t  ep_type,
uint16_t  ep_max_packet_size,
int32_t  error 
)

Event on ARM_USBD_EndpointConfigure failed (Error)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
ep_typeendpoint type (ARM_USB_ENDPOINT_xxx)
ep_max_packet_sizeendpoint maximum packet size
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_EndpointStall ( uint8_t  device,
uint8_t  ep_addr,
bool  stall 
)

Event on ARM_USBD_EndpointStall finished successfully (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
stalloperation
  • false: clear
  • true: set
__STATIC_INLINE void EvrUSBD_Driver_EndpointStallFailed ( uint8_t  device,
uint8_t  ep_addr,
bool  stall,
int32_t  error 
)

Event on ARM_USBD_EndpointStall failed (Error)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
stalloperation
  • false: clear
  • true: set
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransfer ( uint8_t  device,
uint8_t  ep_addr,
const uint8_t *  data,
uint32_t  num 
)

Event on ARM_USBD_EndpointTransfer finished successfully (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
datapointer to buffer for data to read or with data to write
numnumber of data bytes to transfer
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferAbort ( uint8_t  device,
uint8_t  ep_addr 
)

Event on ARM_USBD_EndpointTransferAbort finished successfully (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferAbortFailed ( uint8_t  device,
uint8_t  ep_addr,
int32_t  error 
)

Event on ARM_USBD_EndpointTransferAbort failed (Error)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferFailed ( uint8_t  device,
uint8_t  ep_addr,
int32_t  error 
)

Event on ARM_USBD_EndpointTransfer failed (Error)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_EndpointTransferGetResult ( uint8_t  device,
uint8_t  ep_addr,
uint32_t  num 
)

Event on ARM_USBD_EndpointTransferGetResult finished (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
numnumber of successfully transferred data bytes
__STATIC_INLINE void EvrUSBD_Driver_EndpointUnconfigure ( uint8_t  device,
uint8_t  ep_addr 
)

Event on ARM_USBD_EndpointUnconfigure finished successfully (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
__STATIC_INLINE void EvrUSBD_Driver_EndpointUnconfigureFailed ( uint8_t  device,
uint8_t  ep_addr,
int32_t  error 
)

Event on ARM_USBD_EndpointUnconfigure failed (Error)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_GetFrameNumber ( uint8_t  device,
uint16_t  frame_number 
)

Event on ARM_USBD_GetFrameNumber finished (API)

Parameters
devicedevice index
frame_numberframe number
__STATIC_INLINE void EvrUSBD_Driver_Initialize ( uint8_t  device)

Event on ARM_USBD_Initialize finished successfully (API)

Parameters
devicedevice index
__STATIC_INLINE void EvrUSBD_Driver_InitializeFailed ( uint8_t  device,
int32_t  error 
)

Event on ARM_USBD_Initialize failed (Error)

Parameters
devicedevice index
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_OnSignalDeviceEvent ( uint8_t  device,
uint32_t  event 
)

Event on ARM_USBD_SignalDeviceEvent callback start (API)

Parameters
devicedevice index
eventdevice event USBD_dev_events
__STATIC_INLINE void EvrUSBD_Driver_OnSignalEndpointEvent ( uint8_t  device,
uint8_t  ep_addr,
uint32_t  event 
)

Event on ARM_USBD_SignalEndpointEvent callback start (API)

Parameters
devicedevice index
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
eventendpoint event USBD_ep_events
__STATIC_INLINE void EvrUSBD_Driver_PowerControl ( uint8_t  device,
ARM_POWER_STATE  state 
)

Event on ARM_USBD_PowerControl finished successfully (API)

Parameters
devicedevice index
statepower state ARM_POWER_STATE
__STATIC_INLINE void EvrUSBD_Driver_PowerControlFailed ( uint8_t  device,
ARM_POWER_STATE  state,
int32_t  error 
)

Event on ARM_USBD_PowerControl failed (Error)

Parameters
devicedevice index
statepower state ARM_POWER_STATE
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_ReadSetupPacket ( uint8_t  device,
const void *  setup_packet 
)

Event on ARM_USBD_ReadSetupPacket finished successfully (API)

Parameters
devicedevice index
setup_packetsetup packet content
__STATIC_INLINE void EvrUSBD_Driver_ReadSetupPacketFailed ( uint8_t  device,
int32_t  error 
)

Event on ARM_USBD_ReadSetupPacket failed (Error)

Parameters
devicedevice index
errorerror code (ARM_DRIVER_xxx)
__STATIC_INLINE void EvrUSBD_Driver_Uninitialize ( uint8_t  device)

Event on ARM_USBD_Uninitialize finished successfully (API)

Parameters
devicedevice index
__STATIC_INLINE void EvrUSBD_Driver_UninitializeFailed ( uint8_t  device,
int32_t  error 
)

Event on ARM_USBD_Uninitialize failed (Error)

Parameters
devicedevice index
errorerror code (ARM_DRIVER_xxx)