USB Component  
MDK Middleware for USB Device and Host Communication
 
Loading...
Searching...
No Matches
USBD_CDC: Communication Device Class Functions

Events generated by USB Device - Communication Device Class functions. More...

Functions

__STATIC_INLINE void EvrUSBD_CDC_Initialize (uint8_t instance)
 Event on internal library operation CDC initialize start (Operation)
 
__STATIC_INLINE void EvrUSBD_CDC_InitializeFailed (uint8_t instance, usbStatus error)
 Event on internal library operation CDC initialize failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_Uninitialize (uint8_t instance)
 Event on internal library operation CDC uninitialize start (Operation)
 
__STATIC_INLINE void EvrUSBD_CDC_UninitializeFailed (uint8_t instance, usbStatus error)
 Event on internal library operation CDC uninitialize failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_Reset (uint8_t instance)
 Event on internal library operation CDC reset start (Operation)
 
__STATIC_INLINE void EvrUSBD_CDC_ResetFailed (uint8_t instance, usbStatus error)
 Event on internal library operation CDC reset failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnInitialize (uint8_t n)
 Event on USBD_CDCn_ACM_Initialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnUninitialize (uint8_t n)
 Event on USBD_CDCn_ACM_Uninitialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnReset (uint8_t n)
 Event on USBD_CDCn_ACM_Reset user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnSendEncapsulatedCommand (uint8_t n, uint32_t buf, uint16_t len, bool result)
 Event on USBD_CDCn_ACM_SendEncapsulatedCommand user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnGetEncapsulatedResponse (uint8_t n, uint16_t max_len, uint32_t buf, uint16_t len, bool result)
 Event on USBD_CDCn_ACM_GetEncapsulatedResponse user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnSetLineCoding (uint8_t n, uint32_t rate, bool result)
 Event on USBD_CDCn_ACM_SetLineCoding user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnGetLineCoding (uint8_t n, uint32_t rate, bool result)
 Event on USBD_CDCn_ACM_GetLineCoding user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_OnSetControlLineState (uint8_t n, uint8_t dtr, uint8_t rts, bool result)
 Event on USBD_CDCn_ACM_SetControlLineState user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_ReadData (uint8_t instance, int32_t len, uint32_t result)
 Event on USBD_CDC_ACM_ReadData finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_ReadDataFailed (uint8_t instance, int32_t len, int32_t error)
 Event on USBD_CDC_ACM_ReadData failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_WriteData (uint8_t instance, int32_t len, uint32_t result)
 Event on USBD_CDC_ACM_WriteData finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_WriteDataFailed (uint8_t instance, int32_t len, int32_t error)
 Event on USBD_CDC_ACM_WriteData failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_GetChar (uint8_t instance, int32_t result)
 Event on USBD_CDC_ACM_GetChar finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_PutChar (uint8_t instance, int32_t result)
 Event on USBD_CDC_ACM_PutChar finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_DataAvailable (uint8_t instance, uint32_t result)
 Event on USBD_CDC_ACM_DataAvailable finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_DataAvailableFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_ACM_DataAvailable failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_SerialState (uint8_t instance, uint16_t state)
 Event on USBD_CDC_ACM_Notify_SerialState finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_SerialStateFailed (uint8_t instance, uint16_t state, usbStatus error)
 Event on USBD_CDC_ACM_Notify_SerialState failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_ResponseAvailable (uint8_t instance)
 Event on USBD_CDC_ACM_Notify_ResponseAvailable finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_ResponseAvailableFailed (uint8_t instance, usbStatus error)
 Event on USBD_CDC_ACM_Notify_ResponseAvailable failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnInitialize (uint8_t n)
 Event on USBD_CDCn_NCM_Initialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnUninitialize (uint8_t n)
 Event on USBD_CDCn_NCM_Uninitialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnReset (uint8_t n)
 Event on USBD_CDCn_NCM_Reset user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnStart (uint8_t n)
 Event on USBD_CDCn_NCM_Start user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnStop (uint8_t n)
 Event on USBD_CDCn_NCM_Stop user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetEthMulticastFilters (uint8_t n, bool result)
 Event on USBD_CDCn_NCM_SetEthernetMulticastFilters user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetEthPowerMgmtPatFilter (uint8_t n, uint16_t filter_number, bool result)
 Event on USBD_CDCn_NCM_SetEthernetPowerManagementPatternFilter user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetEthPowerMgmtPatFilter (uint8_t n, uint16_t filter_number, bool result)
 Event on USBD_CDCn_NCM_GetEthernetPowerManagementPatternFilter user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetEthernetPacketFilter (uint8_t n, uint16_t packet_filter_bitmap, bool result)
 Event on USBD_CDCn_NCM_SetEthernetPacketFilter user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetEthernetStatistic (uint8_t n, uint16_t feature_selector, bool result)
 Event on USBD_CDCn_NCM_GetEthernetStatistic user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNtbParameters (uint8_t n, bool result)
 Event on USBD_CDCn_NCM_GetNtbParameters user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNetAddress (uint8_t n, bool result)
 Event on USBD_CDCn_NCM_GetNetAddress user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetNetAddress (uint8_t n, bool result)
 Event on USBD_CDCn_NCM_SetNetAddress user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNtbFormat (uint8_t n, uint16_t ntb_format, bool result)
 Event on USBD_CDCn_NCM_GetNtbFormat user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetNtbFormat (uint8_t n, uint16_t ntb_format, bool result)
 Event on USBD_CDCn_NCM_SetNtbFormat user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNtbInputSize (uint8_t n, uint32_t ntb_input_size, bool result)
 Event on USBD_CDCn_NCM_GetNtbInputSize user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetNtbInputSize (uint8_t n, uint32_t ntb_input_size, bool result)
 Event on USBD_CDCn_NCM_SetNtbInputSize user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetMaxDatagramSize (uint8_t n, uint16_t max_datagram_size, bool result)
 Event on USBD_CDCn_NCM_GetMaxDatagramSize user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetMaxDatagramSize (uint8_t n, uint16_t max_datagram_size, bool result)
 Event on USBD_CDCn_NCM_SetMaxDatagramSize user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetCrcMode (uint8_t n, uint16_t crc_mode, bool result)
 Event on USBD_CDCn_NCM_GetCrcMode user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetCrcMode (uint8_t n, uint16_t crc_mode, bool result)
 Event on USBD_CDCn_NCM_SetCrcMode user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnNTB_IN_Sent (uint8_t n)
 Event on USBD_CDCn_NCM_NTB_IN_Sent user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_OnNTB_OUT_Received (uint8_t n)
 Event on USBD_CDCn_NCM_NTB_OUT_Received user callback function finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_Initialize (uint8_t instance)
 Event on USBD_CDC_NCM_NTB_IN_Initialize finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_InitializeFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_NCM_NTB_IN_Initialize failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_CreateNDP (uint8_t instance, uint8_t num_datagrams)
 Event on USBD_CDC_NCM_NTB_IN_CreateNDP finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_CreateNDPFailed (uint8_t instance, uint8_t num_datagrams, int32_t error)
 Event on USBD_CDC_NCM_NTB_IN_CreateNDP failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_WriteDatagram (uint8_t instance, uint32_t len)
 Event on USBD_CDC_NCM_NTB_IN_WriteDatagram finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_WriteDatagramFailed (uint8_t instance, uint32_t len, int32_t error)
 Event on USBD_CDC_NCM_NTB_IN_WriteDatagram failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_Send (uint8_t instance)
 Event on USBD_CDC_NCM_NTB_IN_Send finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_SendFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_NCM_NTB_IN_Send failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_IsSent (uint8_t instance, uint32_t result)
 Event on USBD_CDC_NCM_NTB_IN_IsSent finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_IsSentFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_NCM_NTB_IN_IsSent failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_IsReceived (uint8_t instance, uint32_t result)
 Event on USBD_CDC_NCM_NTB_OUT_IsReceived finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_IsReceivedFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_NCM_NTB_OUT_IsReceived failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_Release (uint8_t instance)
 Event on USBD_CDC_NCM_NTB_OUT_Release finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ReleaseFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_NCM_NTB_OUT_Release failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ProcessNDP (uint8_t instance)
 Event on USBD_CDC_NCM_NTB_OUT_ProcessNDP finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ProcessNDPFailed (uint8_t instance, int32_t error)
 Event on USBD_CDC_NCM_NTB_OUT_ProcessNDP failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_GetDatagramSize (uint8_t instance, uint32_t result)
 Event on USBD_CDC_NCM_NTB_OUT_GetDatagramSize finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ReadDatagram (uint8_t instance, uint32_t max_len, uint32_t result)
 Event on USBD_CDC_NCM_NTB_OUT_ReadDatagram finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ReadDatagramFailed (uint8_t instance, uint32_t max_len, int32_t error)
 Event on USBD_CDC_NCM_NTB_OUT_ReadDatagram failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_RawSend (uint8_t instance, uint32_t len)
 Event on USBD_CDC_NCM_NTB_IN_RawSend finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_RawSendFailed (uint8_t instance, uint32_t len, int32_t error)
 Event on USBD_CDC_NCM_NTB_IN_RawSend failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_RawGetSize (uint8_t instance, uint32_t result)
 Event on USBD_CDC_NCM_NTB_OUT_RawGetSize finished (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_RawReceive (uint8_t instance, uint32_t max_len)
 Event on USBD_CDC_NCM_NTB_OUT_RawReceive finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_RawReceiveFailed (uint8_t instance, uint32_t max_len, int32_t error)
 Event on USBD_CDC_NCM_NTB_OUT_RawReceive failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_NetworkConnection (uint8_t instance, uint16_t status)
 Event on USBD_CDC_NCM_Notify_NetworkConnection finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_NetworkConnectionFailed (uint8_t instance, uint16_t status, int32_t error)
 Event on USBD_CDC_NCM_Notify_NetworkConnection failed (Error)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_ConnectionSpeedChange (uint8_t instance, uint32_t us_bitrate, uint32_t ds_bitrate)
 Event on USBD_CDC_NCM_Notify_ConnectionSpeedChange finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_ConnectionSpeedChangeFailed (uint8_t instance, uint32_t us_bitrate, uint32_t ds_bitrate, int32_t error)
 Event on USBD_CDC_NCM_Notify_ConnectionSpeedChange failed (Error)
 

Description

Events generated by USB Device - Communication Device Class functions.

Function Documentation

◆ EvrUSBD_CDC_ACM_DataAvailable()

__STATIC_INLINE void EvrUSBD_CDC_ACM_DataAvailable ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_CDC_ACM_DataAvailable finished successfully (API)

Parameters
instanceinstance of CDC class
resultnumber of bytes available to read

◆ EvrUSBD_CDC_ACM_DataAvailableFailed()

__STATIC_INLINE void EvrUSBD_CDC_ACM_DataAvailableFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_ACM_DataAvailable failed (Error)

Parameters
instanceinstance of CDC class
errorerror code usbStatus

◆ EvrUSBD_CDC_ACM_GetChar()

__STATIC_INLINE void EvrUSBD_CDC_ACM_GetChar ( uint8_t  instance,
int32_t  result 
)

Event on USBD_CDC_ACM_GetChar finished (API)

Parameters
instanceinstance of CDC class
resultvalue of read character or no character received
  • value >= 0: value of first received unread character
  • value -1: indicates no character was received

◆ EvrUSBD_CDC_ACM_Notify_ResponseAvailable()

__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_ResponseAvailable ( uint8_t  instance)

Event on USBD_CDC_ACM_Notify_ResponseAvailable finished successfully (API)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_ACM_Notify_ResponseAvailableFailed()

__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_ResponseAvailableFailed ( uint8_t  instance,
usbStatus  error 
)

Event on USBD_CDC_ACM_Notify_ResponseAvailable failed (Error)

Parameters
instanceinstance of CDC class
errorerror code usbStatus

◆ EvrUSBD_CDC_ACM_Notify_SerialState()

__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_SerialState ( uint8_t  instance,
uint16_t  state 
)

Event on USBD_CDC_ACM_Notify_SerialState finished successfully (API)

Parameters
instanceinstance of CDC class
stateerror status and line states:
  • bit 6: bOverRun
  • bit 5: bParity
  • bit 4: bFraming
  • bit 3: bRingSignal
  • bit 2: bBreak
  • bit 1: bTxCarrier (DSR line state)
  • bit 0: bRxCarrier (DCD line state)

◆ EvrUSBD_CDC_ACM_Notify_SerialStateFailed()

__STATIC_INLINE void EvrUSBD_CDC_ACM_Notify_SerialStateFailed ( uint8_t  instance,
uint16_t  state,
usbStatus  error 
)

Event on USBD_CDC_ACM_Notify_SerialState failed (Error)

Parameters
instanceinstance of CDC class
stateerror status and line states:
  • bit 6: bOverRun
  • bit 5: bParity
  • bit 4: bFraming
  • bit 3: bRingSignal
  • bit 2: bBreak
  • bit 1: bTxCarrier (DSR line state)
  • bit 0: bRxCarrier (DCD line state)
errorerror code usbStatus

◆ EvrUSBD_CDC_ACM_OnGetEncapsulatedResponse()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnGetEncapsulatedResponse ( uint8_t  n,
uint16_t  max_len,
uint32_t  buf,
uint16_t  len,
bool  result 
)

Event on USBD_CDCn_ACM_GetEncapsulatedResponse user callback function finished (API)

Parameters
ninstance of CDC class
max_lenmaximum number of data bytes that USB Host expects to receive
bufpointer to buffer containing get encapsulated response to be returned to USB Host
lenpointer to number of data bytes to be returned to USB Host
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_ACM_OnGetLineCoding()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnGetLineCoding ( uint8_t  n,
uint32_t  rate,
bool  result 
)

Event on USBD_CDCn_ACM_GetLineCoding user callback function finished (API)

Parameters
ninstance of CDC class
ratecurrent data terminal bit rate
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_ACM_OnInitialize()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnInitialize ( uint8_t  n)

Event on USBD_CDCn_ACM_Initialize user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_ACM_OnReset()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnReset ( uint8_t  n)

Event on USBD_CDCn_ACM_Reset user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_ACM_OnSendEncapsulatedCommand()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnSendEncapsulatedCommand ( uint8_t  n,
uint32_t  buf,
uint16_t  len,
bool  result 
)

Event on USBD_CDCn_ACM_SendEncapsulatedCommand user callback function finished (API)

Parameters
ninstance of CDC class
bufbuffer that contains send encapsulated command request
lenlength of send encapsulated command request
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_ACM_OnSetControlLineState()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnSetControlLineState ( uint8_t  n,
uint8_t  dtr,
uint8_t  rts,
bool  result 
)

Event on USBD_CDCn_ACM_SetControlLineState user callback function finished (API)

Parameters
ninstance of CDC class
dtrDTR control line state
rtsRTS control line state
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_ACM_OnSetLineCoding()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnSetLineCoding ( uint8_t  n,
uint32_t  rate,
bool  result 
)

Event on USBD_CDCn_ACM_SetLineCoding user callback function finished (API)

Parameters
ninstance of CDC class
raterequested data terminal bit rate
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_ACM_OnUninitialize()

__STATIC_INLINE void EvrUSBD_CDC_ACM_OnUninitialize ( uint8_t  n)

Event on USBD_CDCn_ACM_Uninitialize user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_ACM_PutChar()

__STATIC_INLINE void EvrUSBD_CDC_ACM_PutChar ( uint8_t  instance,
int32_t  result 
)

Event on USBD_CDC_ACM_PutChar finished (API)

Parameters
instanceinstance of CDC class
resultvalue of accepted character or no character accepted
  • value >= 0: if character accepted for writing
  • value -1: indicates character not accepted

◆ EvrUSBD_CDC_ACM_ReadData()

__STATIC_INLINE void EvrUSBD_CDC_ACM_ReadData ( uint8_t  instance,
int32_t  len,
uint32_t  result 
)

Event on USBD_CDC_ACM_ReadData finished successfully (API)

Parameters
instanceinstance of CDC class
lenmaximum number of bytes to read
resultnumber of bytes read

◆ EvrUSBD_CDC_ACM_ReadDataFailed()

__STATIC_INLINE void EvrUSBD_CDC_ACM_ReadDataFailed ( uint8_t  instance,
int32_t  len,
int32_t  error 
)

Event on USBD_CDC_ACM_ReadData failed (Error)

Parameters
instanceinstance of CDC class
lenmaximum number of bytes to read
errorerror code usbStatus

◆ EvrUSBD_CDC_ACM_WriteData()

__STATIC_INLINE void EvrUSBD_CDC_ACM_WriteData ( uint8_t  instance,
int32_t  len,
uint32_t  result 
)

Event on USBD_CDC_ACM_WriteData finished successfully (API)

Parameters
instanceinstance of CDC class
lenmaximum number of bytes to write
resultnumber of bytes accepted for writing

◆ EvrUSBD_CDC_ACM_WriteDataFailed()

__STATIC_INLINE void EvrUSBD_CDC_ACM_WriteDataFailed ( uint8_t  instance,
int32_t  len,
int32_t  error 
)

Event on USBD_CDC_ACM_WriteData failed (Error)

Parameters
instanceinstance of CDC class
lenmaximum number of bytes to write
errorerror code usbStatus

◆ EvrUSBD_CDC_Initialize()

__STATIC_INLINE void EvrUSBD_CDC_Initialize ( uint8_t  instance)

Event on internal library operation CDC initialize start (Operation)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_InitializeFailed()

__STATIC_INLINE void EvrUSBD_CDC_InitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal library operation CDC initialize failed (Error)

Parameters
instanceinstance of CDC class
errorerror code usbStatus

◆ EvrUSBD_CDC_NCM_Notify_ConnectionSpeedChange()

__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_ConnectionSpeedChange ( uint8_t  instance,
uint32_t  us_bitrate,
uint32_t  ds_bitrate 
)

Event on USBD_CDC_NCM_Notify_ConnectionSpeedChange finished successfully (API)

Parameters
instanceinstance of CDC class
us_bitrateupstream bitrate
ds_bitratedownstream bitrate

◆ EvrUSBD_CDC_NCM_Notify_ConnectionSpeedChangeFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_ConnectionSpeedChangeFailed ( uint8_t  instance,
uint32_t  us_bitrate,
uint32_t  ds_bitrate,
int32_t  error 
)

Event on USBD_CDC_NCM_Notify_ConnectionSpeedChange failed (Error)

Parameters
instanceinstance of CDC class
us_bitrateupstream bitrate
ds_bitratedownstream bitrate
errorerror code

◆ EvrUSBD_CDC_NCM_Notify_NetworkConnection()

__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_NetworkConnection ( uint8_t  instance,
uint16_t  status 
)

Event on USBD_CDC_NCM_Notify_NetworkConnection finished successfully (API)

Parameters
instanceinstance of CDC class
statusconnection status
  • value 1: connected
  • value 0: disconnected

◆ EvrUSBD_CDC_NCM_Notify_NetworkConnectionFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_Notify_NetworkConnectionFailed ( uint8_t  instance,
uint16_t  status,
int32_t  error 
)

Event on USBD_CDC_NCM_Notify_NetworkConnection failed (Error)

Parameters
instanceinstance of CDC class
statusconnection status
  • value 1: connected
  • value 0: disconnected
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_IN_CreateNDP()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_CreateNDP ( uint8_t  instance,
uint8_t  num_datagrams 
)

Event on USBD_CDC_NCM_NTB_IN_CreateNDP finished successfully (API)

Parameters
instanceinstance of CDC class
num_datagramsmaximum number of datagrams that NDP will contain

◆ EvrUSBD_CDC_NCM_NTB_IN_CreateNDPFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_CreateNDPFailed ( uint8_t  instance,
uint8_t  num_datagrams,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_IN_CreateNDP failed (Error)

Parameters
instanceinstance of CDC class
num_datagramsmaximum number of datagrams that NDP will contain
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_IN_Initialize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_Initialize ( uint8_t  instance)

Event on USBD_CDC_NCM_NTB_IN_Initialize finished successfully (API)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_NCM_NTB_IN_InitializeFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_InitializeFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_IN_Initialize failed (Error)

Parameters
instanceinstance of CDC class
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_IN_IsSent()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_IsSent ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_CDC_NCM_NTB_IN_IsSent finished successfully (API)

Parameters
instanceinstance of CDC class
resultNTB sending status
  • value 1: NTB was sent
  • value 0: NTB sending is in progress

◆ EvrUSBD_CDC_NCM_NTB_IN_IsSentFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_IsSentFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_IN_IsSent failed (Error)

Parameters
instanceinstance of CDC class
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_IN_RawSend()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_RawSend ( uint8_t  instance,
uint32_t  len 
)

Event on USBD_CDC_NCM_NTB_IN_RawSend finished successfully (API)

Parameters
instanceinstance of CDC class
lensize of NTB

◆ EvrUSBD_CDC_NCM_NTB_IN_RawSendFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_RawSendFailed ( uint8_t  instance,
uint32_t  len,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_IN_RawSend failed (Error)

Parameters
instanceinstance of CDC class
lensize of NTB
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_IN_Send()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_Send ( uint8_t  instance)

Event on USBD_CDC_NCM_NTB_IN_Send finished successfully (API)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_NCM_NTB_IN_SendFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_SendFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_IN_Send failed (Error)

Parameters
instanceinstance of CDC class
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_IN_WriteDatagram()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_WriteDatagram ( uint8_t  instance,
uint32_t  len 
)

Event on USBD_CDC_NCM_NTB_IN_WriteDatagram finished successfully (API)

Parameters
instanceinstance of CDC class
lennumber of bytes to write

◆ EvrUSBD_CDC_NCM_NTB_IN_WriteDatagramFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_IN_WriteDatagramFailed ( uint8_t  instance,
uint32_t  len,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_IN_WriteDatagram failed (Error)

Parameters
instanceinstance of CDC class
lennumber of bytes to write
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_OUT_GetDatagramSize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_GetDatagramSize ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_CDC_NCM_NTB_OUT_GetDatagramSize finished (API)

Parameters
instanceinstance of CDC class
resultnumber of bytes available in the datagram

◆ EvrUSBD_CDC_NCM_NTB_OUT_IsReceived()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_IsReceived ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_CDC_NCM_NTB_OUT_IsReceived finished successfully (API)

Parameters
instanceinstance of CDC class
resultNTB receiving status
  • value 1: NTB was received
  • value 0: NTB reception is in progress

◆ EvrUSBD_CDC_NCM_NTB_OUT_IsReceivedFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_IsReceivedFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_OUT_IsReceived failed (Error)

Parameters
instanceinstance of CDC class
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_OUT_ProcessNDP()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ProcessNDP ( uint8_t  instance)

Event on USBD_CDC_NCM_NTB_OUT_ProcessNDP finished successfully (API)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_NCM_NTB_OUT_ProcessNDPFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ProcessNDPFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_OUT_ProcessNDP failed (Error)

Parameters
instanceinstance of CDC class
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_OUT_RawGetSize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_RawGetSize ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_CDC_NCM_NTB_OUT_RawGetSize finished (API)

Parameters
instanceinstance of CDC class
resultnumber of bytes available in the NTB

◆ EvrUSBD_CDC_NCM_NTB_OUT_RawReceive()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_RawReceive ( uint8_t  instance,
uint32_t  max_len 
)

Event on USBD_CDC_NCM_NTB_OUT_RawReceive finished successfully (API)

Parameters
instanceinstance of CDC class
max_lenmaximum number of bytes that buffer can accept

◆ EvrUSBD_CDC_NCM_NTB_OUT_RawReceiveFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_RawReceiveFailed ( uint8_t  instance,
uint32_t  max_len,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_OUT_RawReceive failed (Error)

Parameters
instanceinstance of CDC class
max_lenmaximum number of bytes that buffer can accept
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_OUT_ReadDatagram()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ReadDatagram ( uint8_t  instance,
uint32_t  max_len,
uint32_t  result 
)

Event on USBD_CDC_NCM_NTB_OUT_ReadDatagram finished successfully (API)

Parameters
instanceinstance of CDC class
max_lenmaximum number of bytes to read
resultnumber of bytes read from the datagram

◆ EvrUSBD_CDC_NCM_NTB_OUT_ReadDatagramFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ReadDatagramFailed ( uint8_t  instance,
uint32_t  max_len,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_OUT_ReadDatagram failed (Error)

Parameters
instanceinstance of CDC class
max_lenmaximum number of bytes to read
errorerror code

◆ EvrUSBD_CDC_NCM_NTB_OUT_Release()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_Release ( uint8_t  instance)

Event on USBD_CDC_NCM_NTB_OUT_Release finished successfully (API)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_NCM_NTB_OUT_ReleaseFailed()

__STATIC_INLINE void EvrUSBD_CDC_NCM_NTB_OUT_ReleaseFailed ( uint8_t  instance,
int32_t  error 
)

Event on USBD_CDC_NCM_NTB_OUT_Release failed (Error)

Parameters
instanceinstance of CDC class
errorerror code

◆ EvrUSBD_CDC_NCM_OnGetCrcMode()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetCrcMode ( uint8_t  n,
uint16_t  crc_mode,
bool  result 
)

Event on USBD_CDCn_NCM_GetCrcMode user callback function finished (API)

Parameters
ninstance of CDC class
crc_modecurrent CRC mode
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetEthernetStatistic()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetEthernetStatistic ( uint8_t  n,
uint16_t  feature_selector,
bool  result 
)

Event on USBD_CDCn_NCM_GetEthernetStatistic user callback function finished (API)

Parameters
ninstance of CDC class
feature_selectorfeature selector
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetEthPowerMgmtPatFilter()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetEthPowerMgmtPatFilter ( uint8_t  n,
uint16_t  filter_number,
bool  result 
)

Event on USBD_CDCn_NCM_GetEthernetPowerManagementPatternFilter user callback function finished (API)

Parameters
ninstance of CDC class
filter_numberfilter number
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetMaxDatagramSize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetMaxDatagramSize ( uint8_t  n,
uint16_t  max_datagram_size,
bool  result 
)

Event on USBD_CDCn_NCM_GetMaxDatagramSize user callback function finished (API)

Parameters
ninstance of CDC class
max_datagram_sizemaximum datagram size
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetNetAddress()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNetAddress ( uint8_t  n,
bool  result 
)

Event on USBD_CDCn_NCM_GetNetAddress user callback function finished (API)

Parameters
ninstance of CDC class
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetNtbFormat()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNtbFormat ( uint8_t  n,
uint16_t  ntb_format,
bool  result 
)

Event on USBD_CDCn_NCM_GetNtbFormat user callback function finished (API)

Parameters
ninstance of CDC class
ntb_formatNTB format
  • value 0 : NTB-16
  • value 1 : NTB-32
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetNtbInputSize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNtbInputSize ( uint8_t  n,
uint32_t  ntb_input_size,
bool  result 
)

Event on USBD_CDCn_NCM_GetNtbInputSize user callback function finished (API)

Parameters
ninstance of CDC class
ntb_input_sizemaximum NTB size
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnGetNtbParameters()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnGetNtbParameters ( uint8_t  n,
bool  result 
)

Event on USBD_CDCn_NCM_GetNtbParameters user callback function finished (API)

Parameters
ninstance of CDC class
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnInitialize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnInitialize ( uint8_t  n)

Event on USBD_CDCn_NCM_Initialize user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_NCM_OnNTB_IN_Sent()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnNTB_IN_Sent ( uint8_t  n)

Event on USBD_CDCn_NCM_NTB_IN_Sent user callback function finished (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_NCM_OnNTB_OUT_Received()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnNTB_OUT_Received ( uint8_t  n)

Event on USBD_CDCn_NCM_NTB_OUT_Received user callback function finished (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_NCM_OnReset()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnReset ( uint8_t  n)

Event on USBD_CDCn_NCM_Reset user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_NCM_OnSetCrcMode()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetCrcMode ( uint8_t  n,
uint16_t  crc_mode,
bool  result 
)

Event on USBD_CDCn_NCM_SetCrcMode user callback function finished (API)

Parameters
ninstance of CDC class
crc_modeCRC mode to set
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetEthernetPacketFilter()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetEthernetPacketFilter ( uint8_t  n,
uint16_t  packet_filter_bitmap,
bool  result 
)

Event on USBD_CDCn_NCM_SetEthernetPacketFilter user callback function finished (API)

Parameters
ninstance of CDC class
packet_filter_bitmappacket filter bitmap
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetEthMulticastFilters()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetEthMulticastFilters ( uint8_t  n,
bool  result 
)

Event on USBD_CDCn_NCM_SetEthernetMulticastFilters user callback function finished (API)

Parameters
ninstance of CDC class
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetEthPowerMgmtPatFilter()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetEthPowerMgmtPatFilter ( uint8_t  n,
uint16_t  filter_number,
bool  result 
)

Event on USBD_CDCn_NCM_SetEthernetPowerManagementPatternFilter user callback function finished (API)

Parameters
ninstance of CDC class
filter_numberfilter number
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetMaxDatagramSize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetMaxDatagramSize ( uint8_t  n,
uint16_t  max_datagram_size,
bool  result 
)

Event on USBD_CDCn_NCM_SetMaxDatagramSize user callback function finished (API)

Parameters
ninstance of CDC class
max_datagram_sizemaximum datagram size
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetNetAddress()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetNetAddress ( uint8_t  n,
bool  result 
)

Event on USBD_CDCn_NCM_SetNetAddress user callback function finished (API)

Parameters
ninstance of CDC class
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetNtbFormat()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetNtbFormat ( uint8_t  n,
uint16_t  ntb_format,
bool  result 
)

Event on USBD_CDCn_NCM_SetNtbFormat user callback function finished (API)

Parameters
ninstance of CDC class
ntb_formatNTB format
  • value 0 : NTB-16
  • value 1 : NTB-32
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnSetNtbInputSize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnSetNtbInputSize ( uint8_t  n,
uint32_t  ntb_input_size,
bool  result 
)

Event on USBD_CDCn_NCM_SetNtbInputSize user callback function finished (API)

Parameters
ninstance of CDC class
ntb_input_sizemaximum NTB size
resultoperation result
  • true: request processed
  • false: request not supported or not processed

◆ EvrUSBD_CDC_NCM_OnStart()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnStart ( uint8_t  n)

Event on USBD_CDCn_NCM_Start user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_NCM_OnStop()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnStop ( uint8_t  n)

Event on USBD_CDCn_NCM_Stop user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_NCM_OnUninitialize()

__STATIC_INLINE void EvrUSBD_CDC_NCM_OnUninitialize ( uint8_t  n)

Event on USBD_CDCn_NCM_Uninitialize user callback function start (API)

Parameters
ninstance of CDC class

◆ EvrUSBD_CDC_Reset()

__STATIC_INLINE void EvrUSBD_CDC_Reset ( uint8_t  instance)

Event on internal library operation CDC reset start (Operation)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_ResetFailed()

__STATIC_INLINE void EvrUSBD_CDC_ResetFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal library operation CDC reset failed (Error)

Parameters
instanceinstance of CDC class
errorerror code usbStatus

◆ EvrUSBD_CDC_Uninitialize()

__STATIC_INLINE void EvrUSBD_CDC_Uninitialize ( uint8_t  instance)

Event on internal library operation CDC uninitialize start (Operation)

Parameters
instanceinstance of CDC class

◆ EvrUSBD_CDC_UninitializeFailed()

__STATIC_INLINE void EvrUSBD_CDC_UninitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal library operation CDC uninitialize failed (Error)

Parameters
instanceinstance of CDC class
errorerror code usbStatus