|
AFE_NXP_Arduino 2.0.5
Analog Front-End (AFE) device operation sample code for Arduino
|
#include <AFE_NXP.h>
Public Member Functions | |
| LogicalChannel_Base () | |
| virtual | ~LogicalChannel_Base () |
| void | enable (void) |
| void | disable (void) |
| template<class T > | |
| T | read (void) |
| operator AFE_base::raw_t (void) | |
| operator AFE_base::volt_t (void) | |
| template<> | |
| AFE_base::raw_t | read (void) |
| template<> | |
| AFE_base::volt_t | read (void) |
Public Attributes | |
| int | ch_number |
| AFE_base * | afe_ptr |
| template<class T > | |
| double | operator+ (T v) |
| template<class T > | |
| double | operator- (T v) |
| template<class T > | |
| double | operator* (T v) |
| template<class T > | |
| double | operator/ (T v) |
| template<class T > | |
| double | operator+ (T v, LogicalChannel_Base lc) |
| template<class T > | |
| double | operator- (T v, LogicalChannel_Base lc) |
| template<class T > | |
| double | operator* (T v, LogicalChannel_Base lc) |
| template<class T > | |
| double | operator/ (T v, LogicalChannel_Base lc) |
|
inlinevirtual |
Disable this logical channel in the sequencer
Definition at line 19 of file AFE_NXP.cpp.
Enable this logical channel in the sequencer
Definition at line 14 of file AFE_NXP.cpp.
Implicit conversion to raw integer ADC count
Definition at line 37 of file AFE_NXP.cpp.
Implicit conversion to voltage in volts
Definition at line 42 of file AFE_NXP.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
| AFE_base::raw_t LogicalChannel_Base::read | ( | void | ) |
Definition at line 25 of file AFE_NXP.cpp.
| AFE_base::volt_t LogicalChannel_Base::read | ( | void | ) |
Definition at line 31 of file AFE_NXP.cpp.
| T LogicalChannel_Base::read | ( | void | ) |
Read ADC result as the specified type (raw_t or volt_t)
Referenced by operator*(), operator+(), operator-(), operator/(), and read().
| AFE_base* LogicalChannel_Base::afe_ptr |
Definition at line 314 of file AFE_NXP.h.
Referenced by disable(), enable(), NAFE13388_Base::NAFE13388_Base(), NAFE33352_Base::NAFE33352_Base(), and read().
| int LogicalChannel_Base::ch_number |
Definition at line 313 of file AFE_NXP.h.
Referenced by disable(), enable(), NAFE13388_Base::NAFE13388_Base(), NAFE33352_Base::NAFE33352_Base(), and read().