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

Public Member Functions

 Controller (struct pcie_bars &)
 
- 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

bool reset = false
 
std::string mode = "direct"
 
bool swap_div_f_cnt_en = false
 
uint16_t swap_div_f = 0
 
uint16_t deswap_delay = 0
 
- Public Attributes inherited from RegisterDecoderBase
const device_match_fn match_devinfo_lambda
 

Static Public Attributes

static const std::vector< std::string > mode_list
 

Private Member Functions

void encode_params () override
 
void write_params () override
 

Private Attributes

std::unique_ptr< struct bpm_swap_regsregs_storage
 
struct bpm_swap_regsregs
 

Additional Inherited Members

- 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 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 bpm_swap::Controller::encode_params ( )
overrideprivatevirtual

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

Implements RegisterController.

◆ write_params()

void bpm_swap::Controller::write_params ( )
overrideprivatevirtual

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

Reimplemented from RegisterController.

Member Data Documentation

◆ mode_list

const std::vector< std::string > bpm_swap::Controller::mode_list
static
Initial value:
= {
"rffe_switching",
"direct",
"inverted",
"switching",
}

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