CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
OpenTitanUart::FIFOStatus Struct Reference

UART FIFO Status Register. More...

#include <platform-uart.hh>

Inheritance diagram for OpenTitanUart::FIFOStatus:
Collaboration diagram for OpenTitanUart::FIFOStatus:

Public Member Functions

 BITPACK_MEMBER_ADD_NUMERIC (TransmitLevel, uint8_t, 0, 7)
 BITPACK_MEMBER_ADD_NUMERIC (ReceiveLevel, uint8_t, 16, 23)
Public Member Functions inherited from Bitpack< uint32_t >
constexpr Bitpack ()
 Construct a Bitpack value with an underlying Storage of all zero bits.
constexpr Self && operator= (this Self &&self, const std::remove_cvref_t< Self > &b)
 Assign a whole Bitpack at once given a non-volatile Bitpack of the same (or convertible, including derived) type.
constexpr bool operator== (this Self &&self, const std::remove_cvref_t< Self > &b)
 Compare Bitpack-s for equality (reflecting that of Storage).
constexpr auto operator<=> (this Self &&self, const std::remove_cvref_t< Self > &b)
 Spaceship operator on Bitpack-s (reflecing that of Storage).
constexpr operator Storage () const
 Extract the underlying Storage value.
constexpr Storage raw () const
 A shorter way of spelling static_cast<Storage>(...).
const auto read (this Self &&self)
 Return a snapshot of the underlying Storage.
constexpr FieldType get (this Self &&self)
 Fetch the value of a field in this Bitpack based on the field type.
constexpr std::remove_cvref_t< Self > with (this Self &&self, FieldType v)
 Compute a new Bitpack value with an updated field of a given type.
constexpr void set (this Self &&self, FieldType v)
 Compute a new Bitpack value with an updated field of a given type.
constexpr void alter (this Self &&self, auto &&f)
 Convenience function for unconditionally changing several sub-fields at once.
constexpr void assign_from (this Self &&self, auto &&f)
 Convenience function for unconditionally assigning an entire Bitpack from a computed value.

Public Attributes

 BITPACK_USUAL_PREFIX

Additional Inherited Members

Public Types inherited from Bitpack< uint32_t >
using Storage
 Expose the underlying storage type.
Protected Member Functions inherited from Bitpack< uint32_t >
constexpr auto member (this Self &&self)
 Build a Field::Proxy of an explicitly given type and info.

Detailed Description

UART FIFO Status Register.

Definition at line 129 of file platform-uart.hh.

Member Data Documentation

◆ BITPACK_USUAL_PREFIX

OpenTitanUart::FIFOStatus::BITPACK_USUAL_PREFIX

Definition at line 131 of file platform-uart.hh.


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