C
#define HIDRxPacket USBRxOnePacket
Description
Receives the specified data out the specified endpoint.
Typical Usage:
//Read 64-bytes from endpoint HID_EP, into the ReceivedDataBuffer array. // Make sure to save the return handle so that we can check it later // to determine when the transfer is complete. USBOutHandle = HIDRxPacket(HID_EP,(BYTE*)&ReceivedDataBuffer,64);
Preconditions
None
Parameters
Parameters |
Description |
ep |
the endpoint you want to receive the data into |
data |
pointer to where the data will go when it arrives |
len |
the length of the data that you wish to receive |
Return Values
Return Values |
Description |
a handle for the transfer. This information should be kept to track the status of the transfer |
Remarks
None
MCHPFSUSB Device Library > Function Drivers > Human Interface Device (HID) > Public API Members > Functions and Macros > HIDRxPacket Macro