| 
    upm
    0.3.2
    
   Sensor/Actuator repository for libmraa (v0.7.2) 
   | 
 
API for the MAXDS3231M 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  | 
        ||
| ) | 
Instantiates an MAXDS3231M object
| bus | Number of the used bus | 
| devAddr | Address of the used I2C device | 
| ~MAXDS3231M | ( | ) | 
MAXDS3231M object destructor; basically, it closes the I2C connection.
| 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
 1.8.9.1