179#define LTC6804_CFGR0_REFON_MASK LTC6804_CFGR0_REFON(1) // 1 -> Reference Remains Powered Up Until Watchdog Timeout 0 -> Reference Shuts Down after Conversions
187#define LTC6804_CFGR4_DCCx_MASK LTC6804_CFGR4_DCCx(0xFFF) // "x = 1 to 12 1 -> Turn ON Shorting Switch for Cell x 0 -> Turn OFF Shorting Switch for Cell x (Default)"
188#define LTC6804_CFGR5_DCTO(dcto) ((dcto & 0xF) << 4) // Discharge Time Out Value
189#define LTC6804_CFGR5_DCTO_MASK LTC6804_CFGR5_DCTO(0xF) // todo - each value has a different code, with read and write being different. Enum really necessary?
190
191// Bit Definitions for adc options are specified by datasheet Table 46.
192#define LTC6804_ADCOPT_0 0x0 // 0 -> Selects Modes 27kHz, 7kHz or 26Hz with MD[1:0] Bits in ADC Conversion Commands.
193#define LTC6804_ADCOPT_1 0x1 // 1 -> Selects Modes 14kHz, 3kHz or 2kHz with MD[1:0] Bits in ADC Conversion Commands.
194
195// Bit Definitions for command codes are specified by datasheet Table 35.