Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
USBSoftDetach This function performs a detach from the USB bus via software.
USBStallEndpoint Configures the specified endpoint to send STALL to the host, the
next time the host tries to access the endpoint.
USBTransferOnePacket Transfers a single packet (one transaction) of data on the USB bus.
USBTxOnePacket Sends the specified data out the specified endpoint
Module
Device Stack
Description
1.4.1.1.1.1 USB_APPLICATION_EVENT_HANDLER Function
This function is called whenever the USB stack wants to notify the user of an event.
File
usb_device.h
Syntax
bool USB_APPLICATION_EVENT_HANDLER(uint8_t address, USB_EVENT event, void * pdata, uint16_t
size);
Returns
None
Description
This function is called whenever the USB stack wants to notify the user of an event. This function should be implemented by
the user.
Example Usage:
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t address the address of the device when the event happened
uint8_t event The event input specifies which event happened. The
possible options are listed in the
USB_DEVICE_STACK_EVENTS enumeration.
Function
bool USB_APPLICATION_EVENT_HANDLER(uint8_t address, USB_EVENT event, void *pdata, uint16_t size);
1.4.1.1.1.2 USBCancelIO Function
File
usb_device.h
Syntax
void USBCancelIO(uint8_t endpoint);
1.4 Library Interface MLA - USB Library Help Device/Peripheral
39
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf