SSCMA-Micro CPP SDK
v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
|
#include <ma_sensor.h>
Classes | |
struct | Preset |
Public Types | |
enum class | Type : int { kUnknown = 0 , kCamera = 1 , kMicrophone = 2 , kIMU = 3 } |
using | Presets = std::vector< Preset > |
Public Member Functions | |
Sensor (size_t id, Type type) noexcept | |
virtual | ~Sensor ()=default |
virtual ma_err_t | init (size_t preset_idx) noexcept=0 |
virtual void | deInit () noexcept=0 |
operator bool () const noexcept | |
size_t | getID () const noexcept |
Type | getType () const noexcept |
const Presets & | availablePresets () const noexcept |
const Preset & | currentPreset () const noexcept |
const size_t | currentPresetIdx () const noexcept |
Static Public Member Functions | |
static std::string | __repr__ (Type type) noexcept |
Protected Attributes | |
const size_t | m_id |
const Type | m_type |
bool | m_initialized |
size_t | m_preset_idx |
Presets | m_presets |
using ma::Sensor::Presets = std::vector<Preset> |
|
strong |
|
inlineexplicitnoexcept |
|
virtualdefault |
|
inlinestaticnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
pure virtualnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
pure virtualnoexcept |
|
inlinenoexcept |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |