USB Component  Version 6.17.0
MDK Middleware for USB Device and Host Communication
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

◆ EvrUSBD_Driver_Initialize()

__STATIC_INLINE void EvrUSBD_Driver_Initialize ( uint8_t  device)

Event on ARM_USBD_Initialize finished successfully (API)

Parameters
devicedevice index

◆ EvrUSBD_Driver_InitializeFailed()

__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)

◆ EvrUSBD_Driver_Uninitialize()

__STATIC_INLINE void EvrUSBD_Driver_Uninitialize ( uint8_t  device)

Event on ARM_USBD_Uninitialize finished successfully (API)

Parameters
devicedevice index

◆ EvrUSBD_Driver_UninitializeFailed()

__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)

◆ EvrUSBD_Driver_PowerControl()

__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

◆ EvrUSBD_Driver_PowerControlFailed()

__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)

◆ EvrUSBD_Driver_DeviceConnect()

__STATIC_INLINE void EvrUSBD_Driver_DeviceConnect ( uint8_t  device)

Event on ARM_USBD_DeviceConnect finished successfully (API)

Parameters
devicedevice index

◆ EvrUSBD_Driver_DeviceConnectFailed()

__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)

◆ EvrUSBD_Driver_DeviceDisconnect()

__STATIC_INLINE void EvrUSBD_Driver_DeviceDisconnect ( uint8_t  device)

Event on ARM_USBD_DeviceDisconnect finished successfully (API)

Parameters
devicedevice index

◆ EvrUSBD_Driver_DeviceDisconnectFailed()

__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)

◆ EvrUSBD_Driver_DeviceGetState()

__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

◆ EvrUSBD_Driver_DeviceRemoteWakeup()

__STATIC_INLINE void EvrUSBD_Driver_DeviceRemoteWakeup ( uint8_t  device)

Event on ARM_USBD_DeviceRemoteWakeup finished successfully (API)

Parameters
devicedevice index

◆ EvrUSBD_Driver_DeviceRemoteWakeupFailed()

__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)

◆ EvrUSBD_Driver_DeviceSetAddress()

__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

◆ EvrUSBD_Driver_DeviceSetAddressFailed()

__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)

◆ EvrUSBD_Driver_ReadSetupPacket()

__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

◆ EvrUSBD_Driver_ReadSetupPacketFailed()

__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)

◆ EvrUSBD_Driver_EndpointConfigure()

__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

◆ EvrUSBD_Driver_EndpointConfigureFailed()

__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)

◆ EvrUSBD_Driver_EndpointUnconfigure()

__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

◆ EvrUSBD_Driver_EndpointUnconfigureFailed()

__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)

◆ EvrUSBD_Driver_EndpointStall()

__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

◆ EvrUSBD_Driver_EndpointStallFailed()

__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)

◆ EvrUSBD_Driver_EndpointTransfer()

__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

◆ EvrUSBD_Driver_EndpointTransferFailed()

__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)

◆ EvrUSBD_Driver_EndpointTransferGetResult()

__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

◆ EvrUSBD_Driver_EndpointTransferAbort()

__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

◆ EvrUSBD_Driver_EndpointTransferAbortFailed()

__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)

◆ EvrUSBD_Driver_GetFrameNumber()

__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

◆ EvrUSBD_Driver_OnSignalDeviceEvent()

__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

◆ EvrUSBD_Driver_OnSignalEndpointEvent()

__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