USBD_ACM_SerialLineStateSet
Description
Set one or several line state events.
Files
usbd_acm_serial.h/usbd_acm_serial.c
Prototype
void USBD_ACM_SerialLineStateSet (CPU_INT08U subclass_nbr, CPU_INT08U events, USBD_ERR *p_err)
Arguments
subclass_nbr
CDC ACM serial emulation subclass instance number.
events
Line state event(s) to set.
State event | Description |
---|---|
USBD_ACM_SERIAL_STATE_DCD | DCD (Rx carrier) |
USBD_ACM_SERIAL_STATE_DSR | DSR (Tx carrier) |
USBD_ACM_SERIAL_STATE_BREAK | Break |
USBD_ACM_SERIAL_STATE_RING | Ring |
USBD_ACM_SERIAL_STATE_FRAMING | Framing error |
USBD_ACM_SERIAL_STATE_PARITY | Parity error |
USBD_ACM_SERIAL_STATE_OVERUN | Overrun |
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_CLASS_INVALID_NBR
USBD_ERR_INVALID_CLASS_STATE
Returned Value
None.
Callers
Application.
Notes / Warnings
None.