27 #include <mraa/i2c.hpp> 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 112 uint16_t getTemperature ();
128 uint16_t i2cReadReg_N (
int reg,
unsigned int len, uint8_t * buffer);
129 mraa::Result i2cWriteReg_N (uint8_t reg,
unsigned int len, uint8_t * buffer);
130 uint8_t DECtoBSD (uint8_t data);
131 uint8_t BCDtoDEC (uint8_t data);
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
std::string name()
Definition: maxds3231m.hpp:117
Definition: maxds3231m.hpp:55
API for the MAXDS3231M I2C Real-Time Clock.
Definition: maxds3231m.hpp:85