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 eventDescription
USBD_ACM_SERIAL_STATE_DCDDCD (Rx carrier)
USBD_ACM_SERIAL_STATE_DSRDSR (Tx carrier)
USBD_ACM_SERIAL_STATE_BREAKBreak
USBD_ACM_SERIAL_STATE_RINGRing
USBD_ACM_SERIAL_STATE_FRAMINGFraming error
USBD_ACM_SERIAL_STATE_PARITYParity error
USBD_ACM_SERIAL_STATE_OVERUNOverrun

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.