MCU
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
AnalogMultiSensor< N > Class Template Reference

#include <AnalogSensorsInterface.h>

Collaboration diagram for AnalogMultiSensor< N >:
Collaboration graph

Public Member Functions

const AnalogConversionPacket_s< N > & get ()
 Used by systems to get data out of this device when it's self-actualizing sampling & conversion. More...
 
void convert ()
 Performs unit conversions on all channels. More...
 
void sample ()
 Commands the underlying device to sample all channels and internally store the results. More...
 

Public Attributes

AnalogConversionPacket_s< N > data
 

Detailed Description

template<int N>
class AnalogMultiSensor< N >

Definition at line 21 of file AnalogSensorsInterface.h.

Member Function Documentation

◆ convert()

template<int N>
void AnalogMultiSensor< N >::convert ( )
inline

Performs unit conversions on all channels.

Definition at line 35 of file AnalogSensorsInterface.h.

36 {
37 // for (int i = 0; i < N; i++)
38 // {
39 // data.conversions[i] = channels_[i].convert();
40 // }
41 }

◆ get()

template<int N>
const AnalogConversionPacket_s< N > & AnalogMultiSensor< N >::get ( )
inline

Used by systems to get data out of this device when it's self-actualizing sampling & conversion.

Returns
Const ref to last data conversion.

Definition at line 29 of file AnalogSensorsInterface.h.

30 {
31 return data;
32 }
AnalogConversionPacket_s< N > data

◆ sample()

template<int N>
void AnalogMultiSensor< N >::sample ( )

Commands the underlying device to sample all channels and internally store the results.

Member Data Documentation

◆ data

template<int N>
AnalogConversionPacket_s<N> AnalogMultiSensor< N >::data

Definition at line 24 of file AnalogSensorsInterface.h.


The documentation for this class was generated from the following file: