USBD_ACM_SerialLineCtrlReg
Description
Register line control change notification callback.
Files
usbd_acm_serial.h/usbd_acm_serial.c
Prototype
void USBD_ACM_SerialLineCtrlReg (CPU_INT08U subclass_nbr, USBD_ACM_SERIAL_LINE_CTRL_CHNGD line_ctrl_chngd, void *p_arg, USBD_ERR *p_err);
Arguments
subclass_nbr
CDC ACM serial emulation subclass instance number.
line_ctrl_chngd
Line control change notification callback (see note #1).
p_arg
Pointer to callback argument.
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_INVALID_ARG
Returned Value
None.
Callers
Application.
Notes / Warnings
The callback specified by line_ctrl_chngd
argument is used to notify changes in the control signals to the application. The line control notification function has the following prototype:
void AppLineCtrlChngd (CPU_INT08U subclass_nbr, CPU_INT08U events, CPU_INT08U events_chngd, void *p_arg);
Argument(s)
subclass_nbr
CDC ACM serial emulation subclass instance number.
events
Current line state.
events_chngd
Line state flags that have changed.
events_chngd
Pointer to callback argument.