USBHandleGetLength Macro

Microchip USB Device Library

USB Device Library Help
USBHandleGetLength Macro
C
#define USBHandleGetLength(handle) (handle->CNT)
Description

Retrieves the length of the destination buffer of the input handle

Preconditions

None

Parameters
Parameters 
Description 
USB_HANDLE handle 
the handle to the transfer you want the address for. 
Return Values
Return Values 
Description 
WORD 
length of the current buffer that the input handle points to. If the transfer is complete then this is the length of the data transmitted or the length of data actually received. 
Remarks

None

Microchip MCHPFSUSB v2.3 - Sept 20, 2008
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.