Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
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 USBGenRead(BYTE ep, BYTE* data, WORD len)
1.4.1.6.1.4 USBGenWrite Macro
Sends the specified data out the specified endpoint
File
usb_device_generic.h
Syntax
#define USBGenWrite(ep,data,len) USBTxOnePacket(ep,data,len)
Description
This function sends the specified data out the specified endpoint and returns a handle to the transfer information.
Typical Usage:
//make sure that the last transfer isn't busy by checking the handle
if(!USBHandleBusy(USBGenericInHandle))
{
//Send the data contained in the INPacket[] array out on
// endpoint USBGEN_EP_NUM
USBGenericInHandle = USBGenWrite(USBGEN_EP_NUM,(BYTE*)&INPacket[0],sizeof(INPacket));
}
Remarks
None
Preconditions
None
Parameters
Parameters Description
BYTE ep the endpoint you want to send the data out of
BYTE* data pointer to the data that you wish to send
WORD len the length of the data that you wish to send
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 USBGenWrite(BYTE ep, BYTE* data, WORD len)
1.4 Library Interface MLA - USB Library Help Device/Peripheral
98
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf