[USBPORT] Add USB2_IncMicroFrame().

This commit is contained in:
Vadim Galyant 2017-12-01 10:13:10 +09:00 committed by Amine Khaldi
parent 22b8777f84
commit 71a7208f69

View file

@ -38,6 +38,20 @@ USB2_AddDataBitStuff(IN USHORT DataTime)
return (DataTime + (DataTime / 16));
}
VOID
NTAPI
USB2_IncMicroFrame(OUT PUCHAR frame,
OUT PUCHAR uframe)
{
++*uframe;
if (*uframe > (USB2_MICROFRAMES - 1))
{
*uframe = 0;
*frame = (*frame + 1) & (USB2_FRAMES - 1);
}
}
BOOLEAN
NTAPI
USB2_CheckTtEndpointInsert(IN PUSB2_TT_ENDPOINT nextTtEndpoint,