Download WinDriver USB v8.02 User's Guide

Transcript
E.1 Firmware Library API
330
E.1.3.6 WDF_GetEPByteCount()
P URPOSE
• Gets the current bytes count of an endpoint’s FIFO (First In First Out) buffer.
This function should be called before calling WDF_FIFORead() [E.1.3.11] to read
from the endpoint’s FIFO buffer, in order to determine the amount of bytes to read.
P ROTOTYPE
UINT WDF_GetEPByteCount (BYTE bEp ) ;
PARAMETERS
Name
➢ bEp
Type
BYTE
D ESCRIPTION
Name
bEp
Description
Endpoint address [E.1.2.1]
R ETURN VALUE
Returns the endpoint’s FIFO bytes count.
Input/Output
Input