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

C++ API for MAX31723 chip (Temperature sensor) More...

Detailed Description

The Maxim Integrated MAX31723 is a Low-Voltage 3-Wire/SPI Temperature Sensor controller. This module was tested on the Maxim Integrated MAX31732PMB1 PMOD module from the analog PMOD kit.

sensor = new upm::MAX31723(7);
usleep (1000000);
while (!doWork) {
std::cout << "Temperature " << sensor->getTemperature() << std::endl;
usleep (1000000);
}
max31723.jpeg

Public Member Functions

 MAX31723 (int csn)
 
 ~MAX31723 ()
 
short getTemperature ()
 
std::string name ()
 

Static Public Attributes

static const uint8_t R_STS_READ_CMD = 0x00
 
static const uint8_t R_STS_WRITE_CMD = 0x80
 
static const uint8_t R_TEMPERATURE_LSB = 0x01
 
static const uint8_t R_TEMPERATURE_MSB = 0x02
 
static const uint8_t B_CONT_READING = 0x00
 

Constructor & Destructor Documentation

MAX31723 ( int  csn)

Instanciates a MAX31723 object

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

MAXDS3231M object destructor, basicaly it close i2c connection.

Member Function Documentation

short 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: