upm
0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
|
API for the MAXDS3231M I2C Real-Time Clock. More...
This module defines the API for MAXDS3231M
Public Member Functions | |
MAXDS3231M (int bus=0, int devAddr=0x68) | |
void | setDate (Time3231 &time) |
bool | getDate (Time3231 &time) |
uint16_t | getTemperature () |
std::string | name () |
MAXDS3231M | ( | int | bus = 0 , |
int | devAddr = 0x68 |
||
) |
Instantiates an MAXDS3231M object
bus | Number of the used bus |
devAddr | Address of the used I2C device |
void setDate | ( | Time3231 & | time | ) |
Sets the date and time on the chip.
time | Time structure |
bool getDate | ( | Time3231 & | time | ) |
Gets the date and time from the chip.
time | Time structure |
uint16_t getTemperature | ( | void | ) |
Gets the on-board temperature.
|
inline |
Returns the name of the component