modm API documentation
modm::ltc2984< SpiMaster, Cs >::Configuration Struct Reference

Classes

struct  Rsense
 
struct  Rtd
 

Public Types

enum  TemperatureUnit : uint8_t { Celsius = 0b0 << 2, Fahrenheit = 0b1 << 2 }
 
enum  Rejection : uint8_t { Rejection_50Hz_60Hz = 0b00, Rejection_60Hz = 0b01, Rejection_50Hz = 0b10 }
 
enum  MuxChannel : uint32_t {
  Ch1 = Bit0, Ch2 = Bit1, Ch3 = Bit2, Ch4 = Bit3,
  Ch5 = Bit4, Ch6 = Bit5, Ch7 = Bit6, Ch8 = Bit7,
  Ch9 = Bit8, Ch10 = Bit9, Ch11 = Bit10, Ch12 = Bit11,
  Ch13 = Bit12, Ch14 = Bit13, Ch15 = Bit14, Ch16 = Bit15,
  Ch17 = Bit16, Ch18 = Bit17, Ch19 = Bit18, Ch20 = Bit19
}
 
enum  SensorType : uint32_t {
  ThermocoupleJ = 0b00001ul << 27, ThermocoupleK = 0b00010ul << 27, ThermocoupleE = 0b00011ul << 27, ThermocoupleN = 0b00100ul << 27,
  ThermocoupleR = 0b00101ul << 27, ThermocoupleS = 0b00110ul << 27, ThermocoupleT = 0b00111ul << 27, ThermocoupleB = 0b01000ul << 27,
  ThermocoupleCustom = 0b01001ul << 27, Pt10 = 0b01010ul << 27, Pt50 = 0b01011ul << 27, Pt100 = 0b01100ul << 27,
  Pt200 = 0b01101ul << 27, Pt500 = 0b01110ul << 27, Pt1000 = 0b01111ul << 27, Rtd1000_000375 = 0b10000ul << 27,
  RtdNi120 = 0b10001ul << 27, RtdCustom = 0b10010ul << 27, Thermistor2k252 = 0b10011ul << 27, Thermistor3k = 0b10100ul << 27,
  Thermistor5k = 0b10101ul << 27, Thermistor10k = 0b10110ul << 27, Thermistor30k = 0b10111ul << 27, Thermistor2k252_YSI400 = 0b11000ul << 27,
  Thermistor1k_Spectrum = 0b11001ul << 27, ThermistorCustom_SteinhartHart = 0b11010ul << 27, ThermistorCustom_Table = 0b11011ul << 27, Diode = 0b11100ul << 27,
  SenseResistor = 0b11101ul << 27, DirectADC = 0b11110ul << 27
}
 

Public Member Functions

 MODM_FLAGS32 (MuxChannel)
 

Static Public Member Functions

static constexpr uint32_t disabled ()
 
static constexpr uint32_t rtd (const ltc2984::Configuration::SensorType sensorType, const ltc2984::Configuration::Rtd::RsenseChannel rsenseChannel, const ltc2984::Configuration::Rtd::Wires wires, const ltc2984::Configuration::Rtd::ExcitationMode excitationMode, const ltc2984::Configuration::Rtd::ExcitationCurrent excitationCurrent, const ltc2984::Configuration::Rtd::RtdCurve rtdCurve)
 
static constexpr uint32_t rsense (const ltc2984::Configuration::Rsense::Resistance_t resistance)
 

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