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

Create a new instance of the Vendor class.

Files

usbd_vendor.h / usbd_vendor.c

Prototype

Arguments

intr_en

Interrupt endpoints IN and OUT flag:

DEF_TRUE

Pair of interrupt endpoints added to interface.

DEF_FALSE

Pair of interrupt endpoints not added to interface.

interval

Endpoint interval in milliseconds. It must be a power of 2.

req_callback

Vendor-specific request callback.

p_err

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

USBD_ERR_NONE
USBD_ERR_INVALID_ARG
USBD_ERR_ALLOC

Returned Value

Class instance number, if NO error(s).

USBD_CLASS_NBR_NONE, otherwise.

Callers

Application.

Notes / Warnings

None.

  • No labels