|
upm
0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for MAXDS3231M chip (I2C Real-Time Clock) More...
This file defines the API for maxds3231m
Public Member Functions | |
| MAXDS3231M (int bus=0, int devAddr=0x68) | |
| ~MAXDS3231M () | |
| void | setDate (Time3231 &time) |
| bool | getDate (Time3231 &time) |
| uint16_t | getTemperature () |
| std::string | name () |
| MAXDS3231M | ( | int | bus = 0, |
| int | devAddr = 0x68 |
||
| ) |
Instanciates a MAXDS3231M object
| bus | number of used bus |
| devAddr | addres of used i2c device |
| ~MAXDS3231M | ( | ) |
MAXDS3231M object destructor, basicaly it close i2c connection.
| void setDate | ( | Time3231 & | time | ) |
Set date and time on the chip.
| time | staracture |
| bool getDate | ( | Time3231 & | time | ) |
Get date and time located on the chip.
| time | staracture |
| uint16_t getTemperature | ( | void | ) |
Get on board temperature.
|
inline |
Return name of the component
1.8.9.1