33 #ifndef FIRMWARE_SRC_USB_TRANSPORT_H_
34 #define FIRMWARE_SRC_USB_TRANSPORT_H_
41 #include "system_definitions.h"
42 #include "usb/usb_device.h"
79 const IOVec* data,
unsigned int iov_count);
107 #endif // FIRMWARE_SRC_USB_TRANSPORT_H_
The Host <-> Device communication transport.
bool USBTransport_WritePending()
Check if there is a write in progress.
void USBTransport_SoftReset()
Perform a soft reset. This aborts any outbound (write) transfers.
An IOVector, with a pointer to memory and a length attribute.
Definition: iovec.h:35
void USBTransport_Tasks()
Perform the periodic USB layer tasks.
Command
The Ja Rule message commands.
Definition: constants.h:87
USB_DEVICE_HANDLE USBTransport_GetHandle()
Return the USB Device handle.
bool USBTransport_SendResponse(uint8_t token, Command command, uint8_t rc, const IOVec *data, unsigned int iov_count)
Send a response to the Host.
void USBTransport_Initialize(TransportRxFunction rx_cb)
Initialize the USB Transport.
void(* TransportRxFunction)(const uint8_t *, unsigned int)
A function pointer to call when data is received from the host.
Definition: transport.h:65
bool USBTransport_IsConfigured()
Check if the USB driver is configured.