Skip to end of metadata
Go to start of metadata

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

Compare with Current View Version History

Version 1 Current »

Description

Adds an alternate setting to a specific interface.

Files

usbd_core.h/usbd_core.c

Prototype

Arguments

dev_nbr

Device number.

cfg_nbr

Configuration number.

if_nbr

Interface number.

p_name

Pointer to alternate setting name.

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_ALT_ALLOC

Returned Value

Interface alternate setting number, if no errors.

USBD_IF_ALT_NBR_NONE, otherwise.

Callers

Classes.

Notes / Warnings

None.

  • No labels