#ifdef __MAX31865_HPP_ #define __MAX31865_HPP__ #include #include "../utils/BitFiled.hpp" class MAX31865 { public: MAX31865(); private: // // register definitions // union CONFIG_REG { struct VBIAS{ enum { OFF = 0, ON = 1 }; typedef BitField Bits; }; struct CONVERSION_MODE{ enum { OFF = 0, AUTO = 1 }; typedef BitField Bits; }; struct ONE_SHOT{ enum { IDLE = 0, SET = 1 }; typedef BitField Bits; }; struct WIRING{ enum { TWO_OR_FOUR_WIRE = 0, THREE_WIRE = 1 }; typedef BitField Bits; }; struct { enum { IDLE = 0, SET = 1 }; typedef BitField Bits; }; }; }; #endif // __MAX31865_HPP__