Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.4.1.4.1 Functions
Macros
Name Description
HIDRxHandleBusy Retreives the status of the buffer ownership
HIDRxPacket Receives the specified data out the specified endpoint
HIDTxHandleBusy Retreives the status of the buffer ownership
HIDTxPacket Sends the specified data out the specified endpoint
Module
HID Function Driver
Description
1.4.1.4.1.1 HIDRxHandleBusy Macro
Retreives the status of the buffer ownership
File
usb_device_hid.h
Syntax
#define HIDRxHandleBusy(handle) USBHandleBusy(handle)
Description
Retreives the status of the buffer ownership. This function will indicate if the previous transfer is complete or not.
This function will take the input handle (pointer to a BDT entry) and will check the UOWN bit. If the UOWN bit is set then that
indicates that the transfer is not complete and the USB module still owns the data memory. If the UOWN bit is clear that
means that the transfer is complete and that the CPU now owns the data memory.
For more information about the BDT, please refer to the appropriate datasheet for the device in use.
Typical Usage:
if(!HIDRxHandleBusy(USBOutHandle))
{
//The data is available in the buffer that was specified when the
// HIDRxPacket() was called.
}
Remarks
None
Preconditions
None
Parameters
Parameters Description
USB_HANDLE handle the handle for the transfer in question. The handle is
returned by the HIDTxPacket() and HIDRxPacket() functions.
Please insure that USB_HANDLE objects are initialized to
NULL.
Return Values
Return Values Description
TRUE the HID handle is still busy
1.4 Library Interface MLA - USB Library Help Device/Peripheral
88
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf