6 #ifndef MSRFIELDSIGNAL_HPP_INCLUDE
7 #define MSRFIELDSIGNAL_HPP_INCLUDE
36 double sample(
void)
override;
37 double read(
void)
const override;
39 double convert_raw_value(
double val,
41 int &num_overflow)
const;
50 std::shared_ptr<Signal> m_raw_msr;
53 const uint64_t m_mask;
54 const uint64_t m_subfield_max;
56 const double m_scalar;
57 uint64_t m_last_field;
59 bool m_is_batch_ready;
Definition: MSRFieldSignal.hpp:25
double read(void) const override
Read directly the value of the signal without affecting any pushed batch signals.
Definition: MSRFieldSignal.cpp:107
void setup_batch(void) override
Prepare the signal for being updated through side effects by the owner's read_batch step....
Definition: MSRFieldSignal.cpp:47
MSRFieldSignal(const MSRFieldSignal &other)=delete
MSRFieldSignal(std::shared_ptr< Signal > raw_msr, int begin_bit, int end_bit, int function, double scalar)
Definition: MSRFieldSignal.cpp:17
MSRFieldSignal & operator=(const MSRFieldSignal &other)=delete
virtual ~MSRFieldSignal()=default
double sample(void) override
Apply any conversions necessary to interpret the latest stored value as a double.
Definition: MSRFieldSignal.cpp:98
Definition: Signal.hpp:16