Context state for a single stream. More...
#include <sw/device/lib/testing/usb_testutils_streams.h>
Data Fields | |
uint8_t | id |
Stream IDentifier. | |
usb_testutils_transfer_type_t | xfr_type |
USB transfer type. | |
uint8_t | tx_ep |
USB device endpoint being used for data transmission. | |
usbdev_stream_tx_t | tx |
Current transmission state. | |
usbdev_stream_tx_t | tx_cmt |
Committed transmission state. | |
uint8_t | rx_ep |
USB device endpoint being used for data reception. | |
uint16_t | rx_seq |
Reception Sequence Number (for Isochronous streams) | |
uint8_t | rx_lfsr |
Reception-side LFSR state (mirrors USBDPI generation of PRND data) | |
uint8_t | rxtx_lfsr |
Reception-side shadow of transmission LFSR. | |
uint32_t | rx_bytes |
Total number of bytes received from the USB device. | |
uint8_t | rx_buf_size |
Reception-side LFSR for determination of expected buffer size (for Isochronous streams where packets may be dropped) | |
uint32_t | transfer_bytes |
Size of transfer in bytes. | |
usbdev_stream_flags_t | flags |
Stream flags. | |
bool | sending |
Are we sending data? | |
bool | generating |
Are we generating a valid byte sequence? | |
bool | verbose |
Specify whether to perform verbose logging, for visibility (Note that this substantially alters the timing of interactions with the DPI model and will increase the simulation time) | |
Context state for a single stream.
Note: this state information is stored/loaded as-is over suspend/resume operations.
Definition at line 150 of file usb_testutils_streams.h.
usbdev_stream_flags_t usbdev_stream::flags |
Stream flags.
Definition at line 203 of file usb_testutils_streams.h.
bool usbdev_stream::generating |
Are we generating a valid byte sequence?
Definition at line 211 of file usb_testutils_streams.h.
uint8_t usbdev_stream::id |
Stream IDentifier.
Definition at line 154 of file usb_testutils_streams.h.
uint8_t usbdev_stream::rx_buf_size |
Reception-side LFSR for determination of expected buffer size (for Isochronous streams where packets may be dropped)
Definition at line 195 of file usb_testutils_streams.h.
uint32_t usbdev_stream::rx_bytes |
Total number of bytes received from the USB device.
Definition at line 190 of file usb_testutils_streams.h.
uint8_t usbdev_stream::rx_ep |
USB device endpoint being used for data reception.
Definition at line 174 of file usb_testutils_streams.h.
uint8_t usbdev_stream::rx_lfsr |
Reception-side LFSR state (mirrors USBDPI generation of PRND data)
Definition at line 182 of file usb_testutils_streams.h.
uint16_t usbdev_stream::rx_seq |
Reception Sequence Number (for Isochronous streams)
Definition at line 178 of file usb_testutils_streams.h.
uint8_t usbdev_stream::rxtx_lfsr |
Reception-side shadow of transmission LFSR.
Definition at line 186 of file usb_testutils_streams.h.
bool usbdev_stream::sending |
Are we sending data?
Definition at line 207 of file usb_testutils_streams.h.
uint32_t usbdev_stream::transfer_bytes |
Size of transfer in bytes.
Definition at line 199 of file usb_testutils_streams.h.
usbdev_stream_tx_t usbdev_stream::tx |
Current transmission state.
Definition at line 166 of file usb_testutils_streams.h.
usbdev_stream_tx_t usbdev_stream::tx_cmt |
Committed transmission state.
Definition at line 170 of file usb_testutils_streams.h.
uint8_t usbdev_stream::tx_ep |
USB device endpoint being used for data transmission.
Definition at line 162 of file usb_testutils_streams.h.
bool usbdev_stream::verbose |
Specify whether to perform verbose logging, for visibility (Note that this substantially alters the timing of interactions with the DPI model and will increase the simulation time)
Definition at line 217 of file usb_testutils_streams.h.
usb_testutils_transfer_type_t usbdev_stream::xfr_type |
USB transfer type.
Definition at line 158 of file usb_testutils_streams.h.