Data Fields | |
const uint8_t * | buffer |
Start of buffer for transfer. | |
uint32_t | length |
Total number of bytes to be transferred to/from buffer. | |
uint32_t | offset |
Byte offset of the next packet to be transferred. | |
usb_testutils_xfr_flags_t | flags |
Flags modifying the transfer. | |
bool | last |
Indicates that the last packet of the transfer has been reached; if 'next_valid' is true, then 'next_part' holds the last packet, already prepared for sending; if next_valid is false, then the last packet has already been supplied to usbdev and we're just awaiting the 'pkt_sent' interrupt. | |
bool | next_valid |
The next part has been prepared and is ready to send to usbdev. | |
dif_usbdev_buffer_t | next_part |
When sending IN data to the host, we may employ double-buffering and keep an additional buffer ready to be sent as soon as we're notified of the transfer of its predecessor. | |
Definition at line 100 of file usb_testutils.h.
const uint8_t* usb_testutils_transfer::buffer |
Start of buffer for transfer.
Definition at line 104 of file usb_testutils.h.
usb_testutils_xfr_flags_t usb_testutils_transfer::flags |
Flags modifying the transfer.
Definition at line 116 of file usb_testutils.h.
bool usb_testutils_transfer::last |
Indicates that the last packet of the transfer has been reached; if 'next_valid' is true, then 'next_part' holds the last packet, already prepared for sending; if next_valid is false, then the last packet has already been supplied to usbdev and we're just awaiting the 'pkt_sent' interrupt.
Definition at line 124 of file usb_testutils.h.
uint32_t usb_testutils_transfer::length |
Total number of bytes to be transferred to/from buffer.
Definition at line 108 of file usb_testutils.h.
dif_usbdev_buffer_t usb_testutils_transfer::next_part |
When sending IN data to the host, we may employ double-buffering and keep an additional buffer ready to be sent as soon as we're notified of the transfer of its predecessor.
Definition at line 134 of file usb_testutils.h.
bool usb_testutils_transfer::next_valid |
The next part has been prepared and is ready to send to usbdev.
Definition at line 128 of file usb_testutils.h.
uint32_t usb_testutils_transfer::offset |
Byte offset of the next packet to be transferred.
Definition at line 112 of file usb_testutils.h.