CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
OpenTitanUsbdev::ReceiveBufferInfo Struct Reference

The information associated with a received packet. More...

#include <platform-usbdev.hh>

Public Member Functions

constexpr uint8_t endpoint_id ()
 The endpoint ID the received packet was received on.
constexpr uint16_t size ()
 The size of the received packet.
constexpr bool is_setup ()
 Whether the received packet was a setup packet.
constexpr uint8_t buffer_id ()
 The buffer ID used to store the received packet.

Public Attributes

uint32_t info

Detailed Description

The information associated with a received packet.

Definition at line 520 of file platform-usbdev.hh.

Member Function Documentation

◆ buffer_id()

uint8_t OpenTitanUsbdev::ReceiveBufferInfo::buffer_id ( )
inlineconstexpr

The buffer ID used to store the received packet.

Definition at line 543 of file platform-usbdev.hh.

Referenced by OpenTitanUsbdev::packet_data_get().

◆ endpoint_id()

uint8_t OpenTitanUsbdev::ReceiveBufferInfo::endpoint_id ( )
inlineconstexpr

The endpoint ID the received packet was received on.

Definition at line 524 of file platform-usbdev.hh.

◆ is_setup()

bool OpenTitanUsbdev::ReceiveBufferInfo::is_setup ( )
inlineconstexpr

Whether the received packet was a setup packet.

Definition at line 537 of file platform-usbdev.hh.

◆ size()

uint16_t OpenTitanUsbdev::ReceiveBufferInfo::size ( )
inlineconstexpr

The size of the received packet.

Definition at line 531 of file platform-usbdev.hh.

Referenced by OpenTitanUsbdev::packet_data_get().

Member Data Documentation

◆ info

uint32_t OpenTitanUsbdev::ReceiveBufferInfo::info

Definition at line 522 of file platform-usbdev.hh.


The documentation for this struct was generated from the following file: