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 a device to the stack.

Files

usbd_core.h/usbd_core.c

Prototype

Arguments

p_dev_cfg

Pointer to specific USB device configuration

p_bus_fnct

Pointer to application specific structure that contains callback functions called on bus state changes.

p_drv_api

Pointer to specific USB device driver API.

p_drv_cfg

Pointer to specific USB device driver configuration.

p_bsp_api

Pointer to specific USB device board-specific API.

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_ALLOC
USBD_ERR_EP_NONE_AVAIL

Returned Value

Device number, if no error(s).

USBD_DEV_NBR_NONE, otherwise.

Callers

Application.

Notes / Warnings

None.

  • No labels