μHAL
RegisterDecoderBase Class Reference

#include <decoders.h>

Inheritance diagram for RegisterDecoderBase:
Collaboration diagram for RegisterDecoderBase:

Public Member Functions

void check_devinfo_is_set () const
 
virtual void set_devinfo (const struct sdb_device_info &)
 

Public Attributes

const device_match_fn match_devinfo_lambda
 

Protected Member Functions

void set_read_dest (auto &dest)
 
 RegisterDecoderBase (struct pcie_bars &, const struct sdb_device_info &)
 
virtual void read ()
 

Protected Attributes

size_t read_size
 
void * read_dest
 
struct pcie_barsbars
 
struct sdb_device_info devinfo
 
size_t addr
 

Private Member Functions

bool match_devinfo (const struct sdb_device_info &) const
 

Private Attributes

bool devinfo_is_set = false
 
uint64_t vendor_id
 
uint32_t device_id
 
uint8_t major_version
 
bool check_devinfo = false
 

Detailed Description

This class defines base methods that will be used by both decoders and controllers.

Constructor & Destructor Documentation

◆ RegisterDecoderBase()

RegisterDecoderBase::RegisterDecoderBase ( struct pcie_bars bars,
const struct sdb_device_info ref_devinfo 
)
protected

Initializer that sets the device information supported by the implementation

Member Function Documentation

◆ read()

void RegisterDecoderBase::read ( )
protectedvirtual

Read values from BAR4 into #read_dest

Reimplemented in fofb_cc::Core, and pos_calc::Core.

Member Data Documentation

◆ check_devinfo

bool RegisterDecoderBase::check_devinfo = false
private

◆ devinfo_is_set

bool RegisterDecoderBase::devinfo_is_set = false
private

Is set to true when set_devinfo() is called, used to protect us from using uninitialized device information


The documentation for this class was generated from the following files: