|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Data Fields | ||
| uint8_t | value | |
| struct { | ||
| uint8_t vref: 1 | ||
| uint8_t mode: 1 | ||
| uint8_t dr: 2 | ||
| uint8_t gain: 1 | ||
| uint8_t mux: 3 | ||
| } | bits | |
Control register breakdown.
The implementation for the bit field uses the first value as the LSB. Aka vref is the LSB and mux is the MSB.
7:5 MUX (default) 4 Gain (default) 3:2 Data rate (default) 1 Conversion mode (default) 0 VREF (External reference 3.3V)
| struct { ... } ConfigReg::bits |
Referenced by ads1219_current_raw(), and ads1219_voltage_raw().
| uint8_t ConfigReg::mux |
Definition at line 70 of file ads1219.c.
Referenced by ads1219_current_raw().
| uint8_t ConfigReg::value |
Definition at line 64 of file ads1219.c.
Referenced by configure().
| uint8_t ConfigReg::vref |
Definition at line 66 of file ads1219.c.
Referenced by ads1219_current_raw(), and ads1219_voltage_raw().