29 #define ADDR 0x68 // device address
32 #define TIME_CAL_ADDR 0x00
33 #define ALARM1_ADDR 0x07
34 #define ALARM2_ADDR 0x0B
35 #define CONTROL_ADDR 0x0E
36 #define STATUS_ADDR 0x0F
37 #define AGING_OFFSET_ADDR 0x10
38 #define TEMPERATURE_ADDR 0x11
117 mraa_i2c_context m_i2Ctx;
119 uint16_t i2cReadReg_N (
int reg,
unsigned int len, uint8_t * buffer);
120 mraa_result_t i2cWriteReg_N (uint8_t reg,
unsigned int len, uint8_t * buffer);
121 uint8_t DECtoBSD (uint8_t data);
122 uint8_t BCDtoDEC (uint8_t data);
void setDate(Time3231 &time)
Definition: maxds3231m.cxx:59
bool getDate(Time3231 &time)
Definition: maxds3231m.cxx:66
uint16_t getTemperature()
Definition: maxds3231m.cxx:88
std::string name()
Definition: maxds3231m.h:108
Definition: maxds3231m.h:55
MAXDS3231M(int bus, int devAddr)
Definition: maxds3231m.cxx:40
~MAXDS3231M()
Definition: maxds3231m.cxx:54
C++ API for MAXDS3231M chip (Ambient and Infrared Proximity Sensor)
Definition: maxds3231m.h:71