API for the MAXDS3231M I2C Real-Time Clock.  
 More...
This module defines the API for MAXDS3231M
    t.second = 1;
    t.minute = 3;
    t.hour = 3;
    t.day = 3;
    t.month = 3;
    t.year = 3;
    t.weekDay = 3;
    sensor.setDate(t); 
    upm_delay_us(500000);
    while (!doWork) {
        if (sensor.getDate(t)) {
            std::cout << (int) t.hour << ":" << (int) t.minute << ":" << (int) t.second << std::endl;
        }
        upm_delay_us(1000000);
    }
 
Instantiates an MAXDS3231M object
- Parameters
 - 
  
    | bus | Number of the used bus  | 
    | devAddr | Address of the used I2C device  | 
  
   
 
 
Sets the date and time on the chip.
- Parameters
 - 
  
  
 
 
 
Gets the date and time from the chip.
- Parameters
 - 
  
  
 
 
 
      
        
          | uint16_t getTemperature  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
Gets the on-board temperature. 
 
 
Returns the name of the component 
 
 
The documentation for this class was generated from the following files: