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

Send data on CDC data class interface.

Files

usbd_cdc.h/usbd_cdc.c

Prototype

Arguments

dev_nbr

Device number.

cfg_nbr

Configuration index to add the interface.

p_class_drv

Pointer to interface driver.

p_class_arg

Pointer to interface driver argument.

class_code

Class code assigned by the USB-IF.

class_sub_code

Subclass code assigned by the USB-IF.

class_protocol_code

Protocol code assigned by the USB-IF.

p_name

Pointer to string describing the Interface.

p_err

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

USBD_ERR_NONE
USBD_ERR_INVALID_ARG
USBD_ERR_NULL_PTR
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_DEV_INVALID_STATE
USBD_ERR_CFG_INVALID_NBR
USBD_ERR_IF_ALLOC
USBD_ERR_IF_ALT_ALLOC

Returned Value

Interface number, If no error(s).

USBD_IF_NBR_NONE, otherwise.

Callers

Classes.

Notes / Warnings

None.

  • No labels