μHAL
fofb_cc::Controller Class Reference
Inheritance diagram for fofb_cc::Controller:
Collaboration diagram for fofb_cc::Controller:

Public Member Functions

 Controller (struct pcie_bars &)
 
void write_params () override
 
- Public Member Functions inherited from RegisterController
void set_devinfo (const struct sdb_device_info &) override
 
virtual void write_params ()
 
- Public Member Functions inherited from RegisterDecoderBase
void check_devinfo_is_set () const
 
virtual void set_devinfo (const struct sdb_device_info &)
 

Public Attributes

std::optional< bool > err_clr
 
std::optional< bool > cc_enable
 
std::optional< bool > tfs_override
 
std::optional< bool > toa_rd_en
 
std::optional< bool > toa_rd_str
 
std::optional< bool > rcb_rd_en
 
std::optional< bool > rcb_rd_str
 
std::optional< uint16_t > bpm_id
 
std::optional< uint16_t > time_frame_len
 
std::optional< bool > mgt_powerdown
 
std::optional< bool > mgt_loopback
 
std::optional< uint16_t > time_frame_delay
 
std::optional< bool > rx_polarity
 
std::optional< uint32_t > payload_sel
 
std::optional< uint32_t > fofb_data_sel
 
- Public Attributes inherited from RegisterDecoderBase
const device_match_fn match_devinfo_lambda
 

Protected Member Functions

void get_internal_values ()
 
void encode_params () override
 
- Protected Member Functions inherited from RegisterController
 RegisterController (struct pcie_bars &bars, const struct sdb_device_info &)
 
virtual void set_devinfo_callback ()
 
virtual void encode_params ()=0
 
virtual void unset_commands ()
 
- Protected Member Functions inherited from RegisterDecoderBase
void set_read_dest (auto &dest)
 
 RegisterDecoderBase (struct pcie_bars &, const struct sdb_device_info &)
 
virtual void read ()
 

Protected Attributes

std::unique_ptr< struct fofb_cc_regs > regs_storage
 
struct fofb_cc_regs & regs
 
- Protected Attributes inherited from RegisterDecoderBase
size_t read_size
 
void * read_dest
 
struct pcie_barsbars
 
struct sdb_device_info devinfo
 
size_t addr
 

Member Function Documentation

◆ encode_params()

void fofb_cc::Controller::encode_params ( )
overrideprotectedvirtual

Child classes must implement this function to encode their configuration parameters into hardware registers

Implements RegisterController.

◆ write_params()

void fofb_cc::Controller::write_params ( )
overridevirtual

Child classes can implement this function when their write procedures require more than simply writing the regs structure

Reimplemented from RegisterController.


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