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

Creates an interface group.

Files

usbd_core.h/usbd_core.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.

if_start

Interface number of the first interface that is associated with this group

if_cnt

Number of consecutive interfaces that are associated with this group.

p_err

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

USBD_ERR_NONE
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_CFG_INVALID_NBR
USBD_ERR_IF_INVALID_NBR
USBD_ERR_IF_GRP_NBR_IN_USE
USBD_ERR_IF_GRP_ALLOC

Returned Value

Interface group number, if no errors.

USBD_IF_GRP_NBR_NONE, otherwise.

Callers

Classes.

Notes / Warnings

None.

  • No labels