Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

FALSE the HID handle is not busy and is ready to receive additional
data.
Function
bool HIDRxHandleBusy( USB_HANDLE handle)
1.4.1.4.1.2 HIDRxPacket Macro
Receives the specified data out the specified endpoint
File
usb_device_hid.h
Syntax
#define HIDRxPacket USBRxOnePacket
Description
Receives the specified data out the specified endpoint.
Typical Usage:
//Read 64-uint8_ts 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,(uint8_t*)&ReceivedDataBuffer,64);
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t ep the endpoint you want to receive the data into
uint8_t* data pointer to where the data will go when it arrives
uint16_t len the length of the data that you wish to receive
Return Values
Return Values Description
USB_HANDLE a handle for the transfer. This information should be kept to
track the status of the transfer
Function
USB_HANDLE HIDRxPacket(uint8_t ep, uint8_t* data, uint16_t len)
1.4.1.4.1.3 HIDTxHandleBusy Macro
Retreives the status of the buffer ownership
File
usb_device_hid.h
Syntax
#define HIDTxHandleBusy(handle) USBHandleBusy(handle)
1.4 Library Interface MLA - USB Library Help Device/Peripheral
89

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh