upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the MAXDS3231M I2C Real-Time Clock. More...

Detailed Description

This module defines the API for MAXDS3231M

Public Member Functions

synchronized void delete ()
 
 MAXDS3231M (int bus, int devAddr)
 
 MAXDS3231M (int bus)
 
void setDate (Time3231 time)
 
boolean getDate (Time3231 time)
 
int getTemperature ()
 
String name ()
 

Constructor & Destructor Documentation

MAXDS3231M ( int  bus,
int  devAddr 
)

Instantiates an MAXDS3231M object

Parameters
busNumber of the used bus
devAddrAddress of the used I2C device

Member Function Documentation

boolean getDate ( Time3231  time)

Gets the date and time from the chip.

Parameters
timeTime structure
int getTemperature ( )

Gets the on-board temperature.

String name ( )

Returns the name of the component

void setDate ( Time3231  time)

Sets the date and time on the chip.

Parameters
timeTime structure

The documentation for this class was generated from the following file: