USBD_DrvAddrEn

USBD_DrvAddrEn

Description

The next function in the device API structure is the device address enable/AddrEn() function.

Files

Every device driver’s usbd_drv.c

Prototype

static CPU_BOOLEAN USBD_DrvAddrEn (USBD_DRV *p_drv CPU_INT08U dev_addr);

 

Arguments

p_drv

Pointer to USB device driver structure.

dev_addr

Device address assigned by the host.

Returned Value

None.

Callers

USB device core layer.

Notes / Warnings

  1. For device controllers that have hardware assistance to enable the device address after the status stage has completed, no operation needs to be performed.

  2. For device controllers that change the device address immediately, without waiting the status phase to complete, the device address must be set and enabled.