upm  0.1.8
Sensor/Actuator repository for libmraa (v0.4.5)
 All Data Structures Files Functions Variables Macros Pages
Public Member Functions
MAXDS3231M Class Reference

C++ API for MAXDS3231M chip (Ambient and Infrared Proximity Sensor) More...

Detailed Description

This file defines the MAXDS3231M C++ interface for libmax44000

Public Member Functions

 MAXDS3231M (int bus, int devAddr)
 
 ~MAXDS3231M ()
 
void setDate (Time3231 &time)
 
bool getDate (Time3231 &time)
 
uint16_t getTemperature ()
 
std::string name ()
 

Constructor & Destructor Documentation

MAXDS3231M ( int  bus,
int  devAddr 
)

Instanciates a MAXDS3231M object

Parameters
busnumber of used bus
devAddraddres of used i2c device
~MAXDS3231M ( )

MAXDS3231M object destructor, basicaly it close i2c connection.

Member Function Documentation

void setDate ( Time3231 time)

Set date and time on the chip.

Parameters
timestaracture
bool getDate ( Time3231 time)

Get date and time located on the chip.

Parameters
timestaracture
uint16_t getTemperature ( )

Get on board temperature.

std::string name ( )
inline

Return name of the component


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