# Vault 7: Projects

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

### Protego

# MLA -- USB Library

20 December, 2013

- 1
- 2
…
- 47
- 48
- 49
- 50
- 51
…
- 311
- 312

Parameters
Parameters Description
dest address of where the incoming data will go (make sure that
this address is directly accessable by the USB module for
parts with dedicated USB RAM this address must be in that
space)
size the size of the data being received (is almost always going
tobe presented by the preceeding setup packet
SetupPkt.wLength)
(*function) a function that you want called once the data is received. If
this is specificed as NULL then no function is called.
Function
void USBEP0Receive(uint8_t* dest, uint16_t size, void (*function))
1.4.1.1.1.14 USBEP0SendRAMPtr Function
Sets the source, size, and options of the data you wish to send from a RAM source
File
usb_device.h
Syntax
void USBEP0SendRAMPtr(uint8_t* src, uint16_t size, uint8_t Options);
Remarks
None
Preconditions
None
Parameters
Parameters Description
src address of the data to send
size the size of the data needing to be transmitted
options the various options that you want when sending the control
data. Options are:
• USB_EP0_ROM
• USB_EP0_RAM
• USB_EP0_BUSY
• USB_EP0_INCLUDE_ZERO
• USB_EP0_NO_DATA
• USB_EP0_NO_OPTIONS
Function
void USBEP0SendRAMPtr(uint8_t* src, uint16_t size, uint8_t Options)
1.4.1.1.1.15 USBEP0SendROMPtr Function
Sets the source, size, and options of the data you wish to send from a const source
File
usb_device.h
1.4 Library Interface MLA - USB Library Help Device/Peripheral
49

- 1
- 2
…
- 47
- 48
- 49
- 50
- 51
…
- 311
- 312