USBD_Vendor_Add
Description
Create a new instance of the Vendor class.
Files
usbd_vendor.h / usbd_vendor.c
Prototype
CPU_INT08U USBD_Vendor_Add (CPU_BOOLEAN intr_en, CPU_INT16U interval, USBD_VENDOR_REQ_FNCT req_callback, USBD_ERR *p_err);
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.