USBD_ACM_SerialLineCtrlGet

Description

Return current control line state.

Files

usbd_acm_serial.h/usbd_acm_serial.c

Prototype

CPU_INT08U  USBD_ACM_SerialLineCtrlGet (CPU_INT08U   subclass_nbr,
                                        USBD_ERR    *p_err);


Arguments

subclass_nbr

CDC ACM serial emulation subclass instance number.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_INVALID_ARG

Returned Value

Bit-field with the state of the control line.

Bit

Description
USBD_ACM_SERIAL_CTRL_BREAK
Break signal is set.
USBD_ACM_SERIAL_CTRL_RTS
RTS signal is set.
USBD_ACM_SERIAL_CTRL_DTR
DTR signal is set.

Callers

Application.

Notes / Warnings

None.