43 m_presets.push_back({.description =
"Default"});
48 [[nodiscard]]
virtual ma_err_t init(
size_t preset_idx) noexcept = 0;
53 [[nodiscard]]
size_t getID() const noexcept {
return m_id; }
Definition: ma_sensor.h:12
const size_t m_id
Definition: ma_sensor.h:66
const Type m_type
Definition: ma_sensor.h:67
std::vector< Preset > Presets
Definition: ma_sensor.h:38
const size_t currentPresetIdx() const noexcept
Definition: ma_sensor.h:63
virtual ~Sensor()=default
Presets m_presets
Definition: ma_sensor.h:70
const Preset & currentPreset() const noexcept
Definition: ma_sensor.h:57
virtual ma_err_t init(size_t preset_idx) noexcept=0
Type
Definition: ma_sensor.h:14
static std::string __repr__(Type type) noexcept
Definition: ma_sensor.h:21
Type getType() const noexcept
Definition: ma_sensor.h:54
virtual void deInit() noexcept=0
bool m_initialized
Definition: ma_sensor.h:68
Sensor(size_t id, Type type) noexcept
Definition: ma_sensor.h:41
size_t m_preset_idx
Definition: ma_sensor.h:69
const Presets & availablePresets() const noexcept
Definition: ma_sensor.h:56
size_t getID() const noexcept
Definition: ma_sensor.h:53
ma_err_t
Definition: ma_types.h:21
Definition: ma_sensor.h:34
const char * description
Definition: ma_sensor.h:35