Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Register line control change notification callback.

Files

usbd_acm_serial.h/usbd_acm_serial.c

Prototype

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:

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.

  • No labels