ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
ConfigReg Union Reference

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 
 

Detailed Description

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)

Definition at line 63 of file ads1219.c.

Field Documentation

◆ [struct]

struct { ... } ConfigReg::bits

◆ dr

uint8_t ConfigReg::dr

Definition at line 68 of file ads1219.c.

◆ gain

uint8_t ConfigReg::gain

Definition at line 69 of file ads1219.c.

◆ mode

uint8_t ConfigReg::mode

Definition at line 67 of file ads1219.c.

◆ mux

uint8_t ConfigReg::mux

Definition at line 70 of file ads1219.c.

Referenced by ads1219_current_raw().

◆ value

uint8_t ConfigReg::value

Definition at line 64 of file ads1219.c.

Referenced by configure().

◆ vref

uint8_t ConfigReg::vref

Definition at line 66 of file ads1219.c.

Referenced by ads1219_current_raw(), and ads1219_voltage_raw().


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