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

Sets the device Microsoft vendor code used by Microsoft OS descriptors.

Files

usbd_core.h/usbd_core.c

Prototype

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

  1. The vendor code used MUST be different from any vendor bRequest value.
  2. Microsoft OS descriptors must be enabled by setting USBD_CFG_MS_OS_DESC_EN to DEF_ENABLED before using this function.
  • No labels