μHAL
|
Public Member Functions | |
Core (struct pcie_bars &) | |
![]() | |
void | get_data (bool=false) |
void | binary_dump (FILE *) const |
virtual void | print (FILE *, bool) const |
template<class T > | |
T | get_general_data (const char *name) const |
template<class T > | |
T | get_channel_data (const char *name, unsigned channel_index) const |
decoders::data_type | get_generic_data (const char *, decoders::data_key::second_type=std::nullopt) const |
void | write_general (const char *name, decoders::data_type value, void *dest) |
void | write_channel (const char *name, unsigned pos, decoders::data_type value, void *dest) |
![]() | |
void | check_devinfo_is_set () const |
virtual void | set_devinfo (const struct sdb_device_info &) |
Private Member Functions | |
void | decode () override |
Private Attributes | |
std::unique_ptr< struct wb_rtmlamp_ohwr_regs > | regs_storage |
struct wb_rtmlamp_ohwr_regs & | regs |
Additional Inherited Members | |
![]() | |
std::optional< unsigned > | channel |
![]() | |
const device_match_fn | match_devinfo_lambda |
![]() | |
RegisterDecoder (struct pcie_bars &, const struct sdb_device_info &, std::unordered_map< std::string_view, Printer >) | |
void | add_general (const char *, int32_t) |
void | add_general_double (const char *, double) |
void | add_channel (const char *, unsigned, int32_t) |
void | add_channel_double (const char *, unsigned, double) |
RegisterField | rf_get_bit (uint32_t &, uint32_t) |
RegisterField | rf_extract_value (uint32_t &, uint32_t, bool=false) |
RegisterField | rf_whole_register (uint32_t &value, bool is_signed=false) |
RegisterField | rf_fixed2float (RegisterField, unsigned) |
void | add_general (const char *name, RegisterField rf) |
void | add_channel (const char *name, unsigned pos, RegisterField rf) |
virtual void | read_monitors () |
virtual void | decode ()=0 |
virtual void | decode_monitors () |
![]() | |
void | set_read_dest (auto &dest) |
RegisterDecoderBase (struct pcie_bars &, const struct sdb_device_info &) | |
virtual void | read () |
![]() | |
std::optional< unsigned > | number_of_channels |
std::unordered_map< std::string_view, Printer > | printers |
![]() | |
size_t | read_size |
void * | read_dest |
struct pcie_bars & | bars |
struct sdb_device_info | devinfo |
size_t | addr |
|
overrideprivatevirtual |
Decode registers into actual values. Implemented by subclasses
Implements RegisterDecoder.