USBD_ACM_SerialLineStateClr

Description

Clear one or several line state event(s).

Files

usbd_acm_serial.h/usbd_acm_serial.c

Prototype

void  USBD_ACM_SerialLineStateClr (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 clear (see Note #1).

State eventDescription
USBD_ACM_SERIAL_STATE_DCDDCD (Rx carrier)
USBD_ACM_SERIAL_STATE_DSRDSR (Tx carrier)

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

Universal Serial Bus Communications Class Subclass Specification for PSTN Devices version 1.2 states: “For the irregular signals like break, the incoming ring signal, or the overrun error state, this will reset their values to zero and again will not send another notification until their state changes”. The irregular events are self-clear and cannot be clear using this function.