REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches

The bits are sent out with LSBFIRST which means the bits are reversed. More...

#include <tblock.h>

Public Types

enum  Value : uint8_t { A , B , C , D }
 

Public Member Functions

 Mux ()=default
 
constexpr Mux (Value kind)
 
 operator bool () const =delete
 
constexpr operator Value () const
 
uint8_t encode () const
 
Mux decode () const
 
size_t index () const
 

Static Public Member Functions

static Mux from (uint8_t idx)
 

Detailed Description

The bits are sent out with LSBFIRST which means the bits are reversed.

Definition at line 22 of file tblock.h.

Member Enumeration Documentation

◆ Value

enum blocks::Mux::Value : uint8_t
Enumerator

Definition at line 24 of file tblock.h.

Constructor & Destructor Documentation

◆ Mux() [1/2]

blocks::Mux::Mux ( )
default

◆ Mux() [2/2]

blocks::Mux::Mux ( Value kind)
inlineconstexpr

Definition at line 28 of file tblock.h.

Member Function Documentation

◆ decode()

Mux blocks::Mux::decode ( ) const
inline

Definition at line 49 of file tblock.h.

References A, B, C, and D.

◆ encode()

uint8_t blocks::Mux::encode ( ) const
inline

Definition at line 34 of file tblock.h.

References A, B, C, and D.

Referenced by four_muxes_to_bit_sequence().

◆ from()

static Mux blocks::Mux::from ( uint8_t idx)
inlinestatic

Definition at line 66 of file tblock.h.

Referenced by blocks::TBlock::connect().

◆ index()

size_t blocks::Mux::index ( ) const
inline

Definition at line 64 of file tblock.h.

◆ operator bool()

blocks::Mux::operator bool ( ) const
explicitdelete

◆ operator Value()

blocks::Mux::operator Value ( ) const
inlineconstexpr

Definition at line 32 of file tblock.h.


The documentation for this class was generated from the following file:
  • lib/platform-lucidac/src/redac/tblock.h