|
AEM
|
#include <kx122.h>
Public Member Functions | |
| YKX122 (uint8_t address, const YSPI *const y=NULL) | |
| float | acquireChannel (uint8_t channel) |
| bool | selftest (void) |
| uint8_t | getAddr () const |
Public Member Functions inherited from YADC | |
| YADC (const YSPI *const y) | |
Static Public Attributes | |
| static const uint8_t | addrVec [] = {0x1E,0x1F} |
Protected Member Functions | |
| void | configKX122 () const |
Protected Member Functions inherited from YADC | |
| void | selfTestFailed () const |
Protected Attributes | |
| const uint8_t | addr |
Protected Attributes inherited from YADC | |
| const YSPI *const | yspi = NULL |
Static Protected Attributes | |
| static const uint8_t | regVec [][2] |
YKH122 Represents the KX122, acts like an ADC with 3 channels does not use YSPI functionality since it is an I2C device
| YKX122::YKX122 | ( | uint8_t | address, |
| const YSPI *const | y = NULL |
||
| ) |
The vector of hardware adresses for all the KX122s in the sestem
|
virtual |
constructor does not need the YPSI pointer
Implements YADC.
|
protected |
The hardware adresss for this instance for all the KX122s in the sestem
| uint8_t YKX122::getAddr | ( | ) | const |
runs a simple selftest
|
virtual |
as per parent class but 0=x, 1=y, 2=z
Implements YADC.
|
protected |
The vector of register, value pairs used in initial configuration of the device
|
static |
call this at instanciation to set up the device
|
staticprotected |