USBD_DrvFrameNbrGet

Description

Retrieve current frame number.

Files

Every device driver’s usbd_drv.c

Prototype

static  CPU_INT16U  USBD_DrvFrameNbrGet (USBD_DRV  *p_drv);


Arguments

p_drv

Pointer to USB device driver structure.

Returned Value

Frame number.

Callers

USB device core layer.

Notes / Warnings

  1. The value returned by this function is a 16-bit value in which the current frame number and microframe number (if the controller is high-speed) should be encoded. The frame number should be encoded using 11 bits (bit 0 to 10). A microframe number will be encoded using 3 bits (bit 11 to 13).