CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
OpenTitanUart::FIFOControl Struct Reference
Inheritance diagram for OpenTitanUart::FIFOControl:
Collaboration diagram for OpenTitanUart::FIFOControl:

Public Member Functions

 BITPACK_MEMBER_ADD_ENUM_BOOL (Receive, AsIs, Reset, 0)
 BITPACK_MEMBER_ADD_ENUM_BOOL (Transmit, AsIs, Reset, 1)
 BITPACK_MEMBER_ADD_ENUM (ReceiveWatermark, uint8_t, 2, 4)
 BITPACK_MEMBER_ADD_ENUM (TransmitWatermark, uint8_t, 5, 7)
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

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

Member Function Documentation

◆ BITPACK_MEMBER_ADD_ENUM() [1/2]

OpenTitanUart::FIFOControl::BITPACK_MEMBER_ADD_ENUM ( ReceiveWatermark ,
uint8_t ,
2 ,
4  )
inline

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

◆ BITPACK_MEMBER_ADD_ENUM() [2/2]

OpenTitanUart::FIFOControl::BITPACK_MEMBER_ADD_ENUM ( TransmitWatermark ,
uint8_t ,
5 ,
7  )
inline

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

Member Data Documentation

◆ BITPACK_USUAL_PREFIX

OpenTitanUart::FIFOControl::BITPACK_USUAL_PREFIX

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


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