USB Component  Version 6.17.0
MDK Middleware for USB Device and Host Communication
USBH_Core: Core Functions

Events generated by USB Host - Core functions. More...

Functions

__STATIC_INLINE void EvrUSBH_Core_Initialize (uint8_t ctrl)
 Event on USBH_Initialize start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_InitializeFailed (uint8_t ctrl, usbStatus error)
 Event on USBH_Initialize failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_Uninitialize (uint8_t ctrl)
 Event on USBH_Uninitialize start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_UninitializeFailed (uint8_t ctrl, usbStatus error)
 Event on USBH_Uninitialize failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PortSuspend (uint8_t ctrl, uint8_t port)
 Event on USBH_Port_Suspend start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PortSuspendFailed (uint8_t ctrl, uint8_t port, usbStatus error)
 Event on USBH_Port_Suspend failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PortResume (uint8_t ctrl, uint8_t port)
 Event on USBH_Port_Resume start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PortResumeFailed (uint8_t ctrl, uint8_t port, usbStatus error)
 Event on USBH_Port_Resume failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetController (uint8_t device, uint8_t ctrl)
 Event on USBH_Device_GetController finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetPort (uint8_t device, uint8_t port)
 Event on USBH_Device_GetPort finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetStatus (uint8_t device, usbStatus status)
 Event on USBH_Device_GetStatus finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetSpeed (uint8_t device, uint8_t speed)
 Event on USBH_Device_GetSpeed finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetAddress (uint8_t device, uint8_t address)
 Event on USBH_Device_GetAddress finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetVID (uint8_t device, uint16_t vid)
 Event on USBH_Device_GetVID finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetPID (uint8_t device, uint16_t pid)
 Event on USBH_Device_GetPID finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetStringDescriptor (uint8_t device, uint8_t index, uint16_t lang_id, uint16_t desc_length)
 Event on USBH_Device_GetStringDescriptor start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_DeviceGetStringDescriptorFailed (uint8_t device, uint8_t index, uint16_t lang_id, uint16_t desc_length, usbStatus error)
 Event on USBH_Device_GetStringDescriptor failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_OnNotify (uint8_t ctrl, uint8_t port, uint8_t device, USBH_NOTIFY notify)
 Event on USBH_Notify user callback function start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeCreate (uint8_t device, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_max_packet_size, uint8_t ep_interval, USBH_PIPE_HANDLE pipe_hndl)
 Event on USBH_PipeCreate start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeUpdate (USBH_PIPE_HANDLE pipe_hndl)
 Event on USBH_PipeUpdate start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeUpdateFailed (USBH_PIPE_HANDLE pipe_hndl, usbStatus error)
 Event on USBH_PipeUpdate failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeDelete (USBH_PIPE_HANDLE pipe_hndl)
 Event on USBH_PipeDelete start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeDeleteFailed (USBH_PIPE_HANDLE pipe_hndl, usbStatus error)
 Event on USBH_PipeDelete failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeReset (USBH_PIPE_HANDLE pipe_hndl)
 Event on USBH_PipeReset start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeResetFailed (USBH_PIPE_HANDLE pipe_hndl, usbStatus error)
 Event on USBH_PipeReset failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeReceive (USBH_PIPE_HANDLE pipe_hndl, uint32_t len)
 Event on USBH_PipeReceive start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeReceiveFailed (USBH_PIPE_HANDLE pipe_hndl, uint32_t len, usbStatus error)
 Event on USBH_PipeReceive failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeReceiveGetResult (USBH_PIPE_HANDLE pipe_hndl, uint32_t num)
 Event on USBH_PipeReceiveGetResult finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeSend (USBH_PIPE_HANDLE pipe_hndl, uint32_t len)
 Event on USBH_PipeSend start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeSendFailed (USBH_PIPE_HANDLE pipe_hndl, uint32_t len, usbStatus error)
 Event on USBH_PipeSend failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeSendGetResult (USBH_PIPE_HANDLE pipe_hndl, uint32_t num)
 Event on USBH_PipeSendGetResult finished (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeAbort (USBH_PIPE_HANDLE pipe_hndl)
 Event on USBH_PipeAbort start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_PipeAbortFailed (USBH_PIPE_HANDLE pipe_hndl, usbStatus error)
 Event on USBH_PipeAbort failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_ControlTransfer (uint8_t device, const void *setup_packet, uint32_t len)
 Event on USBH_ControlTransfer start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_ControlTransferFailed (uint8_t device, const void *setup_packet, usbStatus error)
 Event on USBH_ControlTransfer failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetStatus (uint8_t device, uint8_t recipient, uint8_t index, uint16_t status)
 Event on USBH_DeviceRequest_GetStatus start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetStatusFailed (uint8_t device, uint8_t recipient, uint8_t index, usbStatus error)
 Event on USBH_DeviceRequest_GetStatus failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestClearFeature (uint8_t device, uint8_t recipient, uint8_t index, uint8_t feature)
 Event on USBH_DeviceRequest_ClearFeature start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestClearFeatureFailed (uint8_t device, uint8_t recipient, uint8_t index, uint8_t feature, usbStatus error)
 Event on USBH_DeviceRequest_ClearFeature failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetFeature (uint8_t device, uint8_t recipient, uint8_t index, uint8_t feature)
 Event on USBH_DeviceRequest_SetFeature start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetFeatureFailed (uint8_t device, uint8_t recipient, uint8_t index, uint8_t feature, usbStatus error)
 Event on USBH_DeviceRequest_SetFeature failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetAddress (uint8_t device, uint8_t address)
 Event on USBH_DeviceRequest_SetAddress start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetAddressFailed (uint8_t device, uint8_t address, usbStatus error)
 Event on USBH_DeviceRequest_SetAddress failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetDescriptor (uint8_t device, uint8_t recipient, uint8_t desc_type, uint8_t desc_index, uint16_t lang_id, uint16_t desc_length)
 Event on USBH_DeviceRequest_GetDescriptor start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetDescriptor (uint8_t device, uint8_t recipient, uint8_t desc_type, uint8_t desc_index, uint16_t lang_id, uint16_t desc_length)
 Event on USBH_DeviceRequest_SetDescriptor start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetConfiguration (uint8_t device, uint8_t config)
 Event on USBH_DeviceRequest_GetConfiguration start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetConfigurationFailed (uint8_t device, usbStatus error)
 Event on USBH_DeviceRequest_GetConfiguration failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetConfiguration (uint8_t device, uint8_t config)
 Event on USBH_DeviceRequest_SetConfiguration start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetConfigurationFailed (uint8_t device, uint8_t config, usbStatus error)
 Event on USBH_DeviceRequest_SetConfiguration failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetInterface (uint8_t device, uint8_t index, uint8_t alt)
 Event on USBH_DeviceRequest_GetInterface start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestGetInterfaceFailed (uint8_t device, uint8_t index, usbStatus error)
 Event on USBH_DeviceRequest_GetInterface failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetInterface (uint8_t device, uint8_t index, uint8_t alt)
 Event on USBH_DeviceRequest_SetInterface start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSetInterfaceFailed (uint8_t device, uint8_t index, uint8_t alt, usbStatus error)
 Event on USBH_DeviceRequest_SetInterface failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSynchFrame (uint8_t device, uint8_t index, uint16_t frame_num)
 Event on USBH_DeviceRequest_SynchFrame start (API) More...
 
__STATIC_INLINE void EvrUSBH_Core_RequestSynchFrameFailed (uint8_t device, uint8_t index, usbStatus error)
 Event on USBH_DeviceRequest_SynchFrame failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemInitFailed (uint8_t ctrl, usbStatus error)
 Event on internal operation memory initialization failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemInit (uint8_t ctrl)
 Event on internal operation memory initialization finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemUninitFailed (uint8_t ctrl, usbStatus error)
 Event on internal operation memory uninitialization failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemUninit (uint8_t ctrl)
 Event on internal operation memory uninitialization finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemAllocFailed (uint8_t ctrl, uint32_t size, usbStatus error)
 Event on internal operation memory allocation failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemAlloc (uint8_t ctrl, const uint8_t *ptr, uint32_t size)
 Event on internal operation memory allocation finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemFreeFailed (uint8_t ctrl, const uint8_t *ptr, usbStatus error)
 Event on internal operation memory free failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_MemFree (uint8_t ctrl, const uint8_t *ptr)
 Event on internal operation memory free finished successfully (Detail) More...
 
__STATIC_INLINE void EvrUSBH_Core_Engine (uint8_t ctrl, uint8_t port, uint32_t event, uint8_t port_state)
 Event on internal operation engine start (Detail) More...
 
__STATIC_INLINE void EvrUSBH_Core_EngineFailed (uint8_t ctrl, uint8_t port, uint32_t event)
 Event on internal operation engine failed (Error) More...
 
__STATIC_INLINE void EvrUSBH_Core_EngineDone (uint8_t ctrl, uint8_t port, uint32_t event, uint8_t port_state)
 Event on internal operation engine finished successfully (Detail) More...
 

Description

Events generated by USB Host - Core functions.

Function Documentation

◆ EvrUSBH_Core_Initialize()

__STATIC_INLINE void EvrUSBH_Core_Initialize ( uint8_t  ctrl)

Event on USBH_Initialize start (API)

Parameters
ctrlcontroller index

◆ EvrUSBH_Core_InitializeFailed()

__STATIC_INLINE void EvrUSBH_Core_InitializeFailed ( uint8_t  ctrl,
usbStatus  error 
)

Event on USBH_Initialize failed (Error)

Parameters
ctrlcontroller index
errorerror code usbStatus

◆ EvrUSBH_Core_Uninitialize()

__STATIC_INLINE void EvrUSBH_Core_Uninitialize ( uint8_t  ctrl)

Event on USBH_Uninitialize start (API)

Parameters
ctrlcontroller index

◆ EvrUSBH_Core_UninitializeFailed()

__STATIC_INLINE void EvrUSBH_Core_UninitializeFailed ( uint8_t  ctrl,
usbStatus  error 
)

Event on USBH_Uninitialize failed (Error)

Parameters
ctrlcontroller index
errorerror code usbStatus

◆ EvrUSBH_Core_PortSuspend()

__STATIC_INLINE void EvrUSBH_Core_PortSuspend ( uint8_t  ctrl,
uint8_t  port 
)

Event on USBH_Port_Suspend start (API)

Parameters
ctrlcontroller index
portroot HUB port

◆ EvrUSBH_Core_PortSuspendFailed()

__STATIC_INLINE void EvrUSBH_Core_PortSuspendFailed ( uint8_t  ctrl,
uint8_t  port,
usbStatus  error 
)

Event on USBH_Port_Suspend failed (Error)

Parameters
ctrlcontroller index
portroot HUB port
errorerror code usbStatus

◆ EvrUSBH_Core_PortResume()

__STATIC_INLINE void EvrUSBH_Core_PortResume ( uint8_t  ctrl,
uint8_t  port 
)

Event on USBH_Port_Resume start (API)

Parameters
ctrlcontroller index
portroot HUB port

◆ EvrUSBH_Core_PortResumeFailed()

__STATIC_INLINE void EvrUSBH_Core_PortResumeFailed ( uint8_t  ctrl,
uint8_t  port,
usbStatus  error 
)

Event on USBH_Port_Resume failed (Error)

Parameters
ctrlcontroller index
portroot HUB port
errorerror code usbStatus

◆ EvrUSBH_Core_DeviceGetController()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetController ( uint8_t  device,
uint8_t  ctrl 
)

Event on USBH_Device_GetController finished (API)

Parameters
devicedevice index
ctrlcontroller index
  • value <= 3: index of USB Host controller
  • value == 255: non-existing USB Host controller

◆ EvrUSBH_Core_DeviceGetPort()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetPort ( uint8_t  device,
uint8_t  port 
)

Event on USBH_Device_GetPort finished (API)

Parameters
devicedevice index
portroot HUB port index
  • value != 255: index of USB Host root HUB port
  • value == 255: non-existing USB Host root HUB port

◆ EvrUSBH_Core_DeviceGetStatus()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetStatus ( uint8_t  device,
usbStatus  status 
)

Event on USBH_Device_GetStatus finished (API)

Parameters
devicedevice index
statusdevice status usbStatus

◆ EvrUSBH_Core_DeviceGetSpeed()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetSpeed ( uint8_t  device,
uint8_t  speed 
)

Event on USBH_Device_GetSpeed finished (API)

Parameters
devicedevice index
speedcommunication speed

◆ EvrUSBH_Core_DeviceGetAddress()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetAddress ( uint8_t  device,
uint8_t  address 
)

Event on USBH_Device_GetAddress finished (API)

Parameters
devicedevice index
addressenumerated address
  • value <= 127: enumerated address
  • value == 255: invalid address

◆ EvrUSBH_Core_DeviceGetVID()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetVID ( uint8_t  device,
uint16_t  vid 
)

Event on USBH_Device_GetVID finished (API)

Parameters
devicedevice index
vidvendor ID

◆ EvrUSBH_Core_DeviceGetPID()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetPID ( uint8_t  device,
uint16_t  pid 
)

Event on USBH_Device_GetPID finished (API)

Parameters
devicedevice index
pidproduct ID

◆ EvrUSBH_Core_DeviceGetStringDescriptor()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetStringDescriptor ( uint8_t  device,
uint8_t  index,
uint16_t  lang_id,
uint16_t  desc_length 
)

Event on USBH_Device_GetStringDescriptor start (API)

Parameters
devicedevice index
indexstring descriptor index
lang_idlanguage ID
desc_lengthdescriptor length

◆ EvrUSBH_Core_DeviceGetStringDescriptorFailed()

__STATIC_INLINE void EvrUSBH_Core_DeviceGetStringDescriptorFailed ( uint8_t  device,
uint8_t  index,
uint16_t  lang_id,
uint16_t  desc_length,
usbStatus  error 
)

Event on USBH_Device_GetStringDescriptor failed (Error)

Parameters
devicedevice index
indexstring descriptor index
lang_idlanguage ID
desc_lengthdescriptor length
errorerror code usbStatus

◆ EvrUSBH_Core_OnNotify()

__STATIC_INLINE void EvrUSBH_Core_OnNotify ( uint8_t  ctrl,
uint8_t  port,
uint8_t  device,
USBH_NOTIFY  notify 
)

Event on USBH_Notify user callback function start (API)

Parameters
ctrlindex of USB Host controller.
portindex of Root HUB port.
deviceindex of USB Device
  • value <= 127: index of of USB Device for device notifications
  • value 255: no device information for port notifications
notifynotification:
  • USBH_NOTIFY_CONNECT = Port connection happened
  • USBH_NOTIFY_DISCONNECT = Port disconnection happened
  • USBH_NOTIFY_OVERCURRENT = Port overcurrent happened
  • USBH_NOTIFY_REMOTE_WAKEUP = Port remote wakeup signaling happened
  • USBH_NOTIFY_READY = Device was successfully enumerated, initialized and is ready for communication
  • USBH_NOTIFY_UNKNOWN_DEVICE = Device was successfully enumerated but there is no driver for it
  • USBH_NOTIFY_INSUFFICIENT_POWER = Device requires more power consumption than available
  • USBH_NOTIFY_CONFIGURATION_FAILED = Device was not successfully configured (not enough resources)
  • USBH_NOTIFY_INITIALIZATION_FAILED = Device was not successfully initialized

◆ EvrUSBH_Core_PipeCreate()

__STATIC_INLINE void EvrUSBH_Core_PipeCreate ( uint8_t  device,
uint8_t  ep_addr,
uint8_t  ep_type,
uint16_t  ep_max_packet_size,
uint8_t  ep_interval,
USBH_PIPE_HANDLE  pipe_hndl 
)

Event on USBH_PipeCreate start (API)

Parameters
deviceindex of USB Device.
ep_addrendpoint address
  • ep_addr.0..3: address
  • ep_addr.7: direction
ep_typeendpoint type.
ep_max_packet_sizeendpoint maximum packet size.
ep_intervalendpoint polling interval.
pipe_hndlpipe handle or pipe creation failed
  • value > 0: pipe_handle
  • value 0: pipe creation failed

◆ EvrUSBH_Core_PipeUpdate()

__STATIC_INLINE void EvrUSBH_Core_PipeUpdate ( USBH_PIPE_HANDLE  pipe_hndl)

Event on USBH_PipeUpdate start (API)

Parameters
pipe_hndlpipe handle.

◆ EvrUSBH_Core_PipeUpdateFailed()

__STATIC_INLINE void EvrUSBH_Core_PipeUpdateFailed ( USBH_PIPE_HANDLE  pipe_hndl,
usbStatus  error 
)

Event on USBH_PipeUpdate failed (Error)

Parameters
pipe_hndlpipe handle.
errorerror code usbStatus

◆ EvrUSBH_Core_PipeDelete()

__STATIC_INLINE void EvrUSBH_Core_PipeDelete ( USBH_PIPE_HANDLE  pipe_hndl)

Event on USBH_PipeDelete start (API)

Parameters
pipe_hndlpipe handle.

◆ EvrUSBH_Core_PipeDeleteFailed()

__STATIC_INLINE void EvrUSBH_Core_PipeDeleteFailed ( USBH_PIPE_HANDLE  pipe_hndl,
usbStatus  error 
)

Event on USBH_PipeDelete failed (Error)

Parameters
pipe_hndlpipe handle.
errorerror code usbStatus

◆ EvrUSBH_Core_PipeReset()

__STATIC_INLINE void EvrUSBH_Core_PipeReset ( USBH_PIPE_HANDLE  pipe_hndl)

Event on USBH_PipeReset start (API)

Parameters
pipe_hndlpipe handle.

◆ EvrUSBH_Core_PipeResetFailed()

__STATIC_INLINE void EvrUSBH_Core_PipeResetFailed ( USBH_PIPE_HANDLE  pipe_hndl,
usbStatus  error 
)

Event on USBH_PipeReset failed (Error)

Parameters
pipe_hndlpipe handle.
errorerror code usbStatus

◆ EvrUSBH_Core_PipeReceive()

__STATIC_INLINE void EvrUSBH_Core_PipeReceive ( USBH_PIPE_HANDLE  pipe_hndl,
uint32_t  len 
)

Event on USBH_PipeReceive start (API)

Parameters
pipe_hndlpipe handle.
lenmaximum number of bytes to receive

◆ EvrUSBH_Core_PipeReceiveFailed()

__STATIC_INLINE void EvrUSBH_Core_PipeReceiveFailed ( USBH_PIPE_HANDLE  pipe_hndl,
uint32_t  len,
usbStatus  error 
)

Event on USBH_PipeReceive failed (Error)

Parameters
pipe_hndlpipe handle.
lenmaximum number of bytes to receive
errorerror code usbStatus

◆ EvrUSBH_Core_PipeReceiveGetResult()

__STATIC_INLINE void EvrUSBH_Core_PipeReceiveGetResult ( USBH_PIPE_HANDLE  pipe_hndl,
uint32_t  num 
)

Event on USBH_PipeReceiveGetResult finished (API)

Parameters
pipe_hndlpipe handle.
numnumber of successfully received data bytes

◆ EvrUSBH_Core_PipeSend()

__STATIC_INLINE void EvrUSBH_Core_PipeSend ( USBH_PIPE_HANDLE  pipe_hndl,
uint32_t  len 
)

Event on USBH_PipeSend start (API)

Parameters
pipe_hndlpipe handle.
lenmaximum number of bytes to send

◆ EvrUSBH_Core_PipeSendFailed()

__STATIC_INLINE void EvrUSBH_Core_PipeSendFailed ( USBH_PIPE_HANDLE  pipe_hndl,
uint32_t  len,
usbStatus  error 
)

Event on USBH_PipeSend failed (Error)

Parameters
pipe_hndlpipe handle.
lennumber of bytes to send
errorerror code usbStatus

◆ EvrUSBH_Core_PipeSendGetResult()

__STATIC_INLINE void EvrUSBH_Core_PipeSendGetResult ( USBH_PIPE_HANDLE  pipe_hndl,
uint32_t  num 
)

Event on USBH_PipeSendGetResult finished (API)

Parameters
pipe_hndlpipe handle.
numnumber of successfully sent data bytes

◆ EvrUSBH_Core_PipeAbort()

__STATIC_INLINE void EvrUSBH_Core_PipeAbort ( USBH_PIPE_HANDLE  pipe_hndl)

Event on USBH_PipeAbort start (API)

Parameters
pipe_hndlpipe handle.

◆ EvrUSBH_Core_PipeAbortFailed()

__STATIC_INLINE void EvrUSBH_Core_PipeAbortFailed ( USBH_PIPE_HANDLE  pipe_hndl,
usbStatus  error 
)

Event on USBH_PipeAbort failed (Error)

Parameters
pipe_hndlpipe handle.
errorerror code usbStatus

◆ EvrUSBH_Core_ControlTransfer()

__STATIC_INLINE void EvrUSBH_Core_ControlTransfer ( uint8_t  device,
const void *  setup_packet,
uint32_t  len 
)

Event on USBH_ControlTransfer start (API)

Parameters
devicedevice index
setup_packetsetup packet content
lennumber of data bytes in data stage

◆ EvrUSBH_Core_ControlTransferFailed()

__STATIC_INLINE void EvrUSBH_Core_ControlTransferFailed ( uint8_t  device,
const void *  setup_packet,
usbStatus  error 
)

Event on USBH_ControlTransfer failed (Error)

Parameters
devicedevice index
setup_packetsetup packet content
errorerror code usbStatus

◆ EvrUSBH_Core_RequestGetStatus()

__STATIC_INLINE void EvrUSBH_Core_RequestGetStatus ( uint8_t  device,
uint8_t  recipient,
uint8_t  index,
uint16_t  status 
)

Event on USBH_DeviceRequest_GetStatus start (API)

Parameters
devicedevice index
recipientrecipient
indexinterface or endpoint index
statusreceived status

◆ EvrUSBH_Core_RequestGetStatusFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestGetStatusFailed ( uint8_t  device,
uint8_t  recipient,
uint8_t  index,
usbStatus  error 
)

Event on USBH_DeviceRequest_GetStatus failed (Error)

Parameters
devicedevice index
recipientrecipient
indexinterface or endpoint index
errorerror code usbStatus

◆ EvrUSBH_Core_RequestClearFeature()

__STATIC_INLINE void EvrUSBH_Core_RequestClearFeature ( uint8_t  device,
uint8_t  recipient,
uint8_t  index,
uint8_t  feature 
)

Event on USBH_DeviceRequest_ClearFeature start (API)

Parameters
devicedevice index
recipientrecipient
indexinterface or endpoint index
featurefeature selector

◆ EvrUSBH_Core_RequestClearFeatureFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestClearFeatureFailed ( uint8_t  device,
uint8_t  recipient,
uint8_t  index,
uint8_t  feature,
usbStatus  error 
)

Event on USBH_DeviceRequest_ClearFeature failed (Error)

Parameters
devicedevice index
recipientrecipient
indexinterface or endpoint index
featurefeature selector
errorerror code usbStatus

◆ EvrUSBH_Core_RequestSetFeature()

__STATIC_INLINE void EvrUSBH_Core_RequestSetFeature ( uint8_t  device,
uint8_t  recipient,
uint8_t  index,
uint8_t  feature 
)

Event on USBH_DeviceRequest_SetFeature start (API)

Parameters
devicedevice index
recipientrecipient
indexinterface or endpoint index
featurefeature selector

◆ EvrUSBH_Core_RequestSetFeatureFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestSetFeatureFailed ( uint8_t  device,
uint8_t  recipient,
uint8_t  index,
uint8_t  feature,
usbStatus  error 
)

Event on USBH_DeviceRequest_SetFeature failed (Error)

Parameters
devicedevice index
recipientrecipient
indexinterface or endpoint index
featurefeature selector
errorerror code usbStatus

◆ EvrUSBH_Core_RequestSetAddress()

__STATIC_INLINE void EvrUSBH_Core_RequestSetAddress ( uint8_t  device,
uint8_t  address 
)

Event on USBH_DeviceRequest_SetAddress start (API)

Parameters
devicedevice index
addressdevice address

◆ EvrUSBH_Core_RequestSetAddressFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestSetAddressFailed ( uint8_t  device,
uint8_t  address,
usbStatus  error 
)

Event on USBH_DeviceRequest_SetAddress failed (Error)

Parameters
devicedevice index
addressdevice address
errorerror code usbStatus

◆ EvrUSBH_Core_RequestGetDescriptor()

__STATIC_INLINE void EvrUSBH_Core_RequestGetDescriptor ( uint8_t  device,
uint8_t  recipient,
uint8_t  desc_type,
uint8_t  desc_index,
uint16_t  lang_id,
uint16_t  desc_length 
)

Event on USBH_DeviceRequest_GetDescriptor start (API)

Parameters
devicedevice index
recipientrecipient
desc_typedescriptor type
desc_indexdescriptor index
lang_idlanguage ID
desc_lengthdescriptor length

◆ EvrUSBH_Core_RequestSetDescriptor()

__STATIC_INLINE void EvrUSBH_Core_RequestSetDescriptor ( uint8_t  device,
uint8_t  recipient,
uint8_t  desc_type,
uint8_t  desc_index,
uint16_t  lang_id,
uint16_t  desc_length 
)

Event on USBH_DeviceRequest_SetDescriptor start (API)

Parameters
devicedevice index
recipientrecipient
desc_typedescriptor type
desc_indexdescriptor index
lang_idlanguage ID
desc_lengthdescriptor length

◆ EvrUSBH_Core_RequestGetConfiguration()

__STATIC_INLINE void EvrUSBH_Core_RequestGetConfiguration ( uint8_t  device,
uint8_t  config 
)

Event on USBH_DeviceRequest_GetConfiguration start (API)

Parameters
devicedevice index
configconfiguration

◆ EvrUSBH_Core_RequestGetConfigurationFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestGetConfigurationFailed ( uint8_t  device,
usbStatus  error 
)

Event on USBH_DeviceRequest_GetConfiguration failed (Error)

Parameters
devicedevice index
errorerror code usbStatus

◆ EvrUSBH_Core_RequestSetConfiguration()

__STATIC_INLINE void EvrUSBH_Core_RequestSetConfiguration ( uint8_t  device,
uint8_t  config 
)

Event on USBH_DeviceRequest_SetConfiguration start (API)

Parameters
devicedevice index
configconfiguration

◆ EvrUSBH_Core_RequestSetConfigurationFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestSetConfigurationFailed ( uint8_t  device,
uint8_t  config,
usbStatus  error 
)

Event on USBH_DeviceRequest_SetConfiguration failed (Error)

Parameters
devicedevice index
configconfiguration
errorerror code usbStatus

◆ EvrUSBH_Core_RequestGetInterface()

__STATIC_INLINE void EvrUSBH_Core_RequestGetInterface ( uint8_t  device,
uint8_t  index,
uint8_t  alt 
)

Event on USBH_DeviceRequest_GetInterface start (API)

Parameters
devicedevice index
indexinterface index
altalternate setting

◆ EvrUSBH_Core_RequestGetInterfaceFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestGetInterfaceFailed ( uint8_t  device,
uint8_t  index,
usbStatus  error 
)

Event on USBH_DeviceRequest_GetInterface failed (Error)

Parameters
devicedevice index
indexinterface index
errorerror code usbStatus

◆ EvrUSBH_Core_RequestSetInterface()

__STATIC_INLINE void EvrUSBH_Core_RequestSetInterface ( uint8_t  device,
uint8_t  index,
uint8_t  alt 
)

Event on USBH_DeviceRequest_SetInterface start (API)

Parameters
devicedevice index
indexinterface index
altalternate setting

◆ EvrUSBH_Core_RequestSetInterfaceFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestSetInterfaceFailed ( uint8_t  device,
uint8_t  index,
uint8_t  alt,
usbStatus  error 
)

Event on USBH_DeviceRequest_SetInterface failed (Error)

Parameters
devicedevice index
indexinterface index
altalternate setting
errorerror code usbStatus

◆ EvrUSBH_Core_RequestSynchFrame()

__STATIC_INLINE void EvrUSBH_Core_RequestSynchFrame ( uint8_t  device,
uint8_t  index,
uint16_t  frame_num 
)

Event on USBH_DeviceRequest_SynchFrame start (API)

Parameters
devicedevice index
indexinterface index
frame_numframe number

◆ EvrUSBH_Core_RequestSynchFrameFailed()

__STATIC_INLINE void EvrUSBH_Core_RequestSynchFrameFailed ( uint8_t  device,
uint8_t  index,
usbStatus  error 
)

Event on USBH_DeviceRequest_SynchFrame failed (Error)

Parameters
devicedevice index
indexinterface index
errorerror code usbStatus

◆ EvrUSBH_Core_MemInitFailed()

__STATIC_INLINE void EvrUSBH_Core_MemInitFailed ( uint8_t  ctrl,
usbStatus  error 
)

Event on internal operation memory initialization failed (Error)

Parameters
ctrlcontroller index
errorerror code usbStatus

◆ EvrUSBH_Core_MemInit()

__STATIC_INLINE void EvrUSBH_Core_MemInit ( uint8_t  ctrl)

Event on internal operation memory initialization finished successfully (Detail)

Parameters
ctrlcontroller index

◆ EvrUSBH_Core_MemUninitFailed()

__STATIC_INLINE void EvrUSBH_Core_MemUninitFailed ( uint8_t  ctrl,
usbStatus  error 
)

Event on internal operation memory uninitialization failed (Error)

Parameters
ctrlcontroller index
errorerror code usbStatus

◆ EvrUSBH_Core_MemUninit()

__STATIC_INLINE void EvrUSBH_Core_MemUninit ( uint8_t  ctrl)

Event on internal operation memory uninitialization finished successfully (Detail)

Parameters
ctrlcontroller index

◆ EvrUSBH_Core_MemAllocFailed()

__STATIC_INLINE void EvrUSBH_Core_MemAllocFailed ( uint8_t  ctrl,
uint32_t  size,
usbStatus  error 
)

Event on internal operation memory allocation failed (Error)

Parameters
ctrlcontroller index
sizesize of memory chunk to be allocated
errorerror code usbStatus

◆ EvrUSBH_Core_MemAlloc()

__STATIC_INLINE void EvrUSBH_Core_MemAlloc ( uint8_t  ctrl,
const uint8_t *  ptr,
uint32_t  size 
)

Event on internal operation memory allocation finished successfully (Detail)

Parameters
ctrlcontroller index
ptrpointer to allocated memory
sizesize of memory chunk to be allocated

◆ EvrUSBH_Core_MemFreeFailed()

__STATIC_INLINE void EvrUSBH_Core_MemFreeFailed ( uint8_t  ctrl,
const uint8_t *  ptr,
usbStatus  error 
)

Event on internal operation memory free failed (Error)

Parameters
ctrlcontroller index
ptrpointer to allocated memory chunk to be released
errorerror code usbStatus

◆ EvrUSBH_Core_MemFree()

__STATIC_INLINE void EvrUSBH_Core_MemFree ( uint8_t  ctrl,
const uint8_t *  ptr 
)

Event on internal operation memory free finished successfully (Detail)

Parameters
ctrlcontroller index
ptrpointer to allocated memory chunk to be released

◆ EvrUSBH_Core_Engine()

__STATIC_INLINE void EvrUSBH_Core_Engine ( uint8_t  ctrl,
uint8_t  port,
uint32_t  event,
uint8_t  port_state 
)

Event on internal operation engine start (Detail)

Parameters
ctrlcontroller index
portroot HUB port
eventevent
port_statecurrent port state

◆ EvrUSBH_Core_EngineFailed()

__STATIC_INLINE void EvrUSBH_Core_EngineFailed ( uint8_t  ctrl,
uint8_t  port,
uint32_t  event 
)

Event on internal operation engine failed (Error)

Parameters
ctrlcontroller index
portroot HUB port
eventevent

◆ EvrUSBH_Core_EngineDone()

__STATIC_INLINE void EvrUSBH_Core_EngineDone ( uint8_t  ctrl,
uint8_t  port,
uint32_t  event,
uint8_t  port_state 
)

Event on internal operation engine finished successfully (Detail)

Parameters
ctrlcontroller index
portroot HUB port
eventevent
port_statecurrent port state