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

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

Functions

__STATIC_INLINE void EvrUSBH_CDC_ACM_Configure (uint8_t instance)
 Event on internal operation CDC ACM device configuration start (Operation)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_ConfigureFailed (usbStatus error)
 Event on internal operation CDC ACM device configuration failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_Unconfigure (uint8_t instance)
 Event on internal operation CDC ACM device unconfigure start (Operation)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_UnconfigureFailed (uint8_t instance, usbStatus error)
 Event on internal operation CDC ACM device uninitialization failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_Initialize (uint8_t instance)
 Event on internal operation CDC ACM device initialization start (Operation)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_InitializeFailed (uint8_t instance, usbStatus error)
 Event on internal operation CDC ACM device initialization failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_OnInitialize (uint8_t instance)
 Event on USBH_CDC_ACM_Initialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_Uninitialize (uint8_t instance)
 Event on internal operation CDC ACM device uninitialization start (Operation)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_UninitializeFailed (uint8_t instance, usbStatus error)
 Event on internal operation CDC ACM device uninitialization failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_OnUninitialize (uint8_t instance)
 Event on USBH_CDC_ACM_Uninitialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_GetDevice (uint8_t instance, uint8_t device)
 Event on USBH_CDC_ACM_GetDevice finished (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_GetStatus (uint8_t instance, uint8_t status)
 Event on USBH_CDC_ACM_GetStatus finished (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_Send (uint8_t instance, uint32_t num)
 Event on USBH_CDC_ACM_Send start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SendFailed (uint8_t instance, uint32_t num, usbStatus error)
 Event on USBH_CDC_ACM_Send failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SendDone (uint8_t instance, uint32_t num)
 Event on USBH_CDC_ACM_Send finished successfully (Detail)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_GetTxCount (uint8_t instance, uint32_t num)
 Event on USBH_CDC_ACM_GetTxCount finished successfully (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortSend (uint8_t instance)
 Event on USBH_CDC_ACM_AbortSend start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortSendFailed (uint8_t instance, usbStatus error)
 Event on USBH_CDC_ACM_AbortSend failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortSendDone (uint8_t instance)
 Event on USBH_CDC_ACM_AbortSend finished successfully (Detail)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_Receive (uint8_t instance, uint32_t num)
 Event on USBH_CDC_ACM_Receive start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_ReceiveFailed (uint8_t instance, uint32_t num, usbStatus error)
 Event on USBH_CDC_ACM_Receive failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_ReceiveDone (uint8_t instance, uint32_t num)
 Event on USBH_CDC_ACM_Receive finished successfully (Detail)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_GetRxCount (uint8_t instance, uint32_t num)
 Event on USBH_CDC_ACM_GetRxCount finished successfully (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortReceive (uint8_t instance)
 Event on USBH_CDC_ACM_AbortReceive start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortReceiveFailed (uint8_t instance, usbStatus error)
 Event on USBH_CDC_ACM_AbortReceive failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortReceiveDone (uint8_t instance)
 Event on USBH_CDC_ACM_AbortReceive finished successfully (Detail)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SetLineCoding (uint8_t instance, uint32_t rate)
 Event on USBH_CDC_ACM_SetLineCoding start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SetLineCodingFailed (uint8_t instance, uint32_t rate, usbStatus error)
 Event on USBH_CDC_ACM_SetLineCoding failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_GetLineCodingFailed (uint8_t instance, uint32_t rate, usbStatus error)
 Event on USBH_CDC_ACM_GetLineCoding failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_GetLineCoding (uint8_t instance, uint32_t rate)
 Event on USBH_CDC_ACM_GetLineCoding finished successfully (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SetControlLineState (uint8_t instance, uint8_t dtr, uint8_t rts)
 Event on USBH_CDC_ACM_SetControlLineState start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SetControlLineStateFailed (uint8_t instance, uint8_t dtr, uint8_t rts, usbStatus error)
 Event on USBH_CDC_ACM_SetControlLineState failed (Error)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_OnNotify (uint8_t instance, uint16_t state)
 Event on USBH_CDC_ACM_Notify user callback function start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SendBreak (uint8_t instance, uint16_t duration)
 Event on USBH_CDC_ACM_SendBreak start (API)
 
__STATIC_INLINE void EvrUSBH_CDC_ACM_SendBreakFailed (uint8_t instance, uint16_t duration, usbStatus error)
 Event on USBH_CDC_ACM_SendBreak failed (Error)
 

Description

Events generated by USB Host - Communication Device Class ACM functions.

Function Documentation

◆ EvrUSBH_CDC_ACM_AbortReceive()

__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortReceive ( uint8_t  instance)

Event on USBH_CDC_ACM_AbortReceive start (API)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_AbortReceiveDone()

__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortReceiveDone ( uint8_t  instance)

Event on USBH_CDC_ACM_AbortReceive finished successfully (Detail)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_AbortReceiveFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortReceiveFailed ( uint8_t  instance,
usbStatus  error 
)

Event on USBH_CDC_ACM_AbortReceive failed (Error)

Parameters
instanceinstance of CDC ACM device
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_AbortSend()

__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortSend ( uint8_t  instance)

Event on USBH_CDC_ACM_AbortSend start (API)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_AbortSendDone()

__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortSendDone ( uint8_t  instance)

Event on USBH_CDC_ACM_AbortSend finished successfully (Detail)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_AbortSendFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_AbortSendFailed ( uint8_t  instance,
usbStatus  error 
)

Event on USBH_CDC_ACM_AbortSend failed (Error)

Parameters
instanceinstance of CDC ACM device
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_Configure()

__STATIC_INLINE void EvrUSBH_CDC_ACM_Configure ( uint8_t  instance)

Event on internal operation CDC ACM device configuration start (Operation)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_ConfigureFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_ConfigureFailed ( usbStatus  error)

Event on internal operation CDC ACM device configuration failed (Error)

Parameters
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_GetDevice()

__STATIC_INLINE void EvrUSBH_CDC_ACM_GetDevice ( uint8_t  instance,
uint8_t  device 
)

Event on USBH_CDC_ACM_GetDevice finished (API)

Parameters
instanceinstance of CDC ACM device
devicedevice index
  • value <= 127: index of Device
  • value == 255: non-existing Device index

◆ EvrUSBH_CDC_ACM_GetLineCoding()

__STATIC_INLINE void EvrUSBH_CDC_ACM_GetLineCoding ( uint8_t  instance,
uint32_t  rate 
)

Event on USBH_CDC_ACM_GetLineCoding finished successfully (API)

Parameters
instanceinstance of CDC ACM device
ratedata terminal rate in bits per second

◆ EvrUSBH_CDC_ACM_GetLineCodingFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_GetLineCodingFailed ( uint8_t  instance,
uint32_t  rate,
usbStatus  error 
)

Event on USBH_CDC_ACM_GetLineCoding failed (Error)

Parameters
instanceinstance of CDC ACM device
ratedata terminal rate in bits per second
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_GetRxCount()

__STATIC_INLINE void EvrUSBH_CDC_ACM_GetRxCount ( uint8_t  instance,
uint32_t  num 
)

Event on USBH_CDC_ACM_GetRxCount finished successfully (API)

Parameters
instanceinstance of CDC ACM device
numnumber of successfully received data bytes

◆ EvrUSBH_CDC_ACM_GetStatus()

__STATIC_INLINE void EvrUSBH_CDC_ACM_GetStatus ( uint8_t  instance,
uint8_t  status 
)

Event on USBH_CDC_ACM_GetStatus finished (API)

Parameters
instanceinstance of CDC ACM device
statusdevice status usbStatus

◆ EvrUSBH_CDC_ACM_GetTxCount()

__STATIC_INLINE void EvrUSBH_CDC_ACM_GetTxCount ( uint8_t  instance,
uint32_t  num 
)

Event on USBH_CDC_ACM_GetTxCount finished successfully (API)

Parameters
instanceinstance of CDC ACM device
numnumber of successfully sent data bytes

◆ EvrUSBH_CDC_ACM_Initialize()

__STATIC_INLINE void EvrUSBH_CDC_ACM_Initialize ( uint8_t  instance)

Event on internal operation CDC ACM device initialization start (Operation)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_InitializeFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_InitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation CDC ACM device initialization failed (Error)

Parameters
instanceinstance of CDC ACM device
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_OnInitialize()

__STATIC_INLINE void EvrUSBH_CDC_ACM_OnInitialize ( uint8_t  instance)

Event on USBH_CDC_ACM_Initialize user callback function start (API)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_OnNotify()

__STATIC_INLINE void EvrUSBH_CDC_ACM_OnNotify ( uint8_t  instance,
uint16_t  state 
)

Event on USBH_CDC_ACM_Notify user callback function start (API)

Parameters
instanceinstance of CDC ACM device
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)

◆ EvrUSBH_CDC_ACM_OnUninitialize()

__STATIC_INLINE void EvrUSBH_CDC_ACM_OnUninitialize ( uint8_t  instance)

Event on USBH_CDC_ACM_Uninitialize user callback function start (API)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_Receive()

__STATIC_INLINE void EvrUSBH_CDC_ACM_Receive ( uint8_t  instance,
uint32_t  num 
)

Event on USBH_CDC_ACM_Receive start (API)

Parameters
instanceinstance of CDC ACM device
nummaximum number of bytes to receive

◆ EvrUSBH_CDC_ACM_ReceiveDone()

__STATIC_INLINE void EvrUSBH_CDC_ACM_ReceiveDone ( uint8_t  instance,
uint32_t  num 
)

Event on USBH_CDC_ACM_Receive finished successfully (Detail)

Parameters
instanceinstance of CDC ACM device
nummaximum number of bytes to receive

◆ EvrUSBH_CDC_ACM_ReceiveFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_ReceiveFailed ( uint8_t  instance,
uint32_t  num,
usbStatus  error 
)

Event on USBH_CDC_ACM_Receive failed (Error)

Parameters
instanceinstance of CDC ACM device
nummaximum number of bytes to receive
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_Send()

__STATIC_INLINE void EvrUSBH_CDC_ACM_Send ( uint8_t  instance,
uint32_t  num 
)

Event on USBH_CDC_ACM_Send start (API)

Parameters
instanceinstance of CDC ACM device
numnumber of bytes to send

◆ EvrUSBH_CDC_ACM_SendBreak()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SendBreak ( uint8_t  instance,
uint16_t  duration 
)

Event on USBH_CDC_ACM_SendBreak start (API)

Parameters
instanceinstance of CDC ACM device
durationduration of break (in milliseconds):
  • value = 0xFFFF: indefinite
  • value = 0: immediate

◆ EvrUSBH_CDC_ACM_SendBreakFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SendBreakFailed ( uint8_t  instance,
uint16_t  duration,
usbStatus  error 
)

Event on USBH_CDC_ACM_SendBreak failed (Error)

Parameters
instanceinstance of CDC ACM device
durationduration of break (in milliseconds):
  • value = 0xFFFF: indefinite
  • value = 0: immediate
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_SendDone()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SendDone ( uint8_t  instance,
uint32_t  num 
)

Event on USBH_CDC_ACM_Send finished successfully (Detail)

Parameters
instanceinstance of CDC ACM device
numnumber of bytes to send

◆ EvrUSBH_CDC_ACM_SendFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SendFailed ( uint8_t  instance,
uint32_t  num,
usbStatus  error 
)

Event on USBH_CDC_ACM_Send failed (Error)

Parameters
instanceinstance of CDC ACM device
numnumber of bytes to send
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_SetControlLineState()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SetControlLineState ( uint8_t  instance,
uint8_t  dtr,
uint8_t  rts 
)

Event on USBH_CDC_ACM_SetControlLineState start (API)

Parameters
instanceinstance of CDC ACM device
dtrDTR control line state
rtsRTS control line state

◆ EvrUSBH_CDC_ACM_SetControlLineStateFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SetControlLineStateFailed ( uint8_t  instance,
uint8_t  dtr,
uint8_t  rts,
usbStatus  error 
)

Event on USBH_CDC_ACM_SetControlLineState failed (Error)

Parameters
instanceinstance of CDC ACM device
dtrDTR control line state
rtsRTS control line state
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_SetLineCoding()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SetLineCoding ( uint8_t  instance,
uint32_t  rate 
)

Event on USBH_CDC_ACM_SetLineCoding start (API)

Parameters
instanceinstance of CDC ACM device
ratedata terminal rate in bits per second

◆ EvrUSBH_CDC_ACM_SetLineCodingFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_SetLineCodingFailed ( uint8_t  instance,
uint32_t  rate,
usbStatus  error 
)

Event on USBH_CDC_ACM_SetLineCoding failed (Error)

Parameters
instanceinstance of CDC ACM device
ratedata terminal rate in bits per second
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_Unconfigure()

__STATIC_INLINE void EvrUSBH_CDC_ACM_Unconfigure ( uint8_t  instance)

Event on internal operation CDC ACM device unconfigure start (Operation)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_UnconfigureFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_UnconfigureFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation CDC ACM device uninitialization failed (Error)

Parameters
instanceinstance of CDC ACM device
errorerror code usbStatus

◆ EvrUSBH_CDC_ACM_Uninitialize()

__STATIC_INLINE void EvrUSBH_CDC_ACM_Uninitialize ( uint8_t  instance)

Event on internal operation CDC ACM device uninitialization start (Operation)

Parameters
instanceinstance of CDC ACM device

◆ EvrUSBH_CDC_ACM_UninitializeFailed()

__STATIC_INLINE void EvrUSBH_CDC_ACM_UninitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal operation CDC ACM device uninitialization failed (Error)

Parameters
instanceinstance of CDC ACM device
errorerror code usbStatus