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

Classes

struct  parameters
 

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

bool intlk_sta_clr = false
 
bool intlk_en_orb_distort = false
 
bool intlk_en_packet_loss = false
 
unsigned orb_distort_limit = 0
 
unsigned min_num_packets = 0
 
std::vector< int32_t > ref_orb_x
 
std::vector< int32_t > ref_orb_y
 
std::vector< struct parametersparameters
 
- Public Attributes inherited from RegisterDecoderBase
const device_match_fn match_devinfo_lambda
 

Protected Member Functions

void set_devinfo_callback () override
 
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 wb_fofb_processing_regs > regs_storage
 
struct wb_fofb_processing_regs & regs
 
unsigned fixed_point_coeff
 
unsigned fixed_point_gains
 
- 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_processing::Controller::encode_params ( )
overrideprotectedvirtual

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

Implements RegisterController.

◆ set_devinfo_callback()

void fofb_processing::Controller::set_devinfo_callback ( )
overrideprotectedvirtual

Child classes can implement this function to capture one-time values from hardware and perform any other necessary initialization

Reimplemented from RegisterController.

◆ write_params()

void fofb_processing::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: