μHAL
orbit_intlk::Controller Class Reference
Inheritance diagram for orbit_intlk::Controller:
Collaboration diagram for orbit_intlk::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 enable {}
 
bool clear {}
 
bool min_sum_enable {}
 
bool pos_enable {}
 
bool pos_clear {}
 
bool ang_enable {}
 
bool ang_clear {}
 
int32_t min_sum {}
 
int32_t pos_max_x {}
 
int32_t pos_max_y {}
 
int32_t ang_max_x {}
 
int32_t ang_max_y {}
 
int32_t pos_min_x {}
 
int32_t pos_min_y {}
 
int32_t ang_min_x {}
 
int32_t ang_min_y {}
 
- Public Attributes inherited from RegisterDecoderBase
const device_match_fn match_devinfo_lambda
 

Private Member Functions

void encode_params () override
 
void write_params () override
 

Private Attributes

std::unique_ptr< struct orbit_intlk_regsregs_storage
 
struct orbit_intlk_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 orbit_intlk::Controller::encode_params ( )
overrideprivatevirtual

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

Implements RegisterController.

◆ write_params()

void orbit_intlk::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.


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