6 #ifndef SSTSIGNAL_HPP_INCLUDE
7 #define SSTSIGNAL_HPP_INCLUDE
39 SSTSignal(std::shared_ptr<geopm::SSTIO> sstio,
44 uint32_t subcommand_arg,
45 uint32_t interface_parameter);
50 double sample(
void)
override;
51 double read(
void)
const override;
53 std::shared_ptr<geopm::SSTIO> m_sstio;
56 const uint16_t m_command;
57 const uint16_t m_subcommand;
58 const uint32_t m_subcommand_arg;
Definition: SSTSignal.hpp:20
SignalType
Definition: SSTSignal.hpp:23
@ M_MBOX
Definition: SSTSignal.hpp:24
@ M_MMIO
Definition: SSTSignal.hpp:25
double read(void) const override
Read directly the value of the signal without affecting any pushed batch signals.
Definition: SSTSignal.cpp:46
virtual ~SSTSignal()=default
double sample(void) override
Apply any conversions necessary to interpret the latest stored value as a double.
Definition: SSTSignal.cpp:41
void setup_batch(void) override
Prepare the signal for being updated through side effects by the owner's read_batch step....
Definition: SSTSignal.cpp:28
SSTSignal(std::shared_ptr< geopm::SSTIO > sstio, SignalType signal_type, int cpu_idx, uint16_t command, uint16_t subcommand, uint32_t subcommand_arg, uint32_t interface_parameter)
Create an SSTIO Signal.
Definition: SSTSignal.cpp:14
Definition: Signal.hpp:16