USBD_DevSetMS_VendorCode
Description
Sets the device Microsoft vendor code used by Microsoft OS descriptors.
Files
usbd_core.h/usbd_core.c
Prototype
void USBD_DevSetMS_VendorCode (CPU_INT08U dev_nbr, CPU_INT08U vendor_code, USBD_ERR *p_err)
Arguments
dev_nbr
Device number.
vendor_code
Microsoft OS vendor code.
p_err
Pointer to variable that will receive the return error code from this function:
USBD_ERR_NONE
USBD_ERR_DEV_INVALID_NBR
Returned Value
None.
Callers
Application.
Notes / Warnings
- The vendor code used MUST be different from any vendor bRequest value.
- Microsoft OS descriptors must be enabled by setting
USBD_CFG_MS_OS_DESC_EN
toDEF_ENABLED
before using this function.