/
USBD_DrvFrameNbrGet
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
- 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).
Related content
USBD_DevFrameNbrGet
USBD_DevFrameNbrGet
More like this
USBD_DevAdd
USBD_DevAdd
More like this
USBD_DrvEP_RxZLP
USBD_DrvEP_RxZLP
More like this
USBD_DrvEP_Rx
USBD_DrvEP_Rx
More like this
USBD_DrvInit
USBD_DrvInit
More like this
General Information
General Information
More like this