upm  1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
Public Member Functions

API for the MAX31855 Thermocouple Amplifier. More...

Detailed Description

Maxim Integrated* MAX31855 is a cold-junction compensated thermocouple-to-digital converter. This module was tested on the Maxim Integrated MAX31855PMB1 PMOD module from the analog PMOD kit.

max31855.jpg
#include "max31855.hpp"
int
main(int argc, char** argv)
{
upm::MAX31855 temp(0, 8);
std::cout << temp.getTemp() << std::endl;
return 0;
}

Public Member Functions

 MAX31855 (int bus, int cs)
 [Constructor] More...
 
 ~MAX31855 ()
 [Constructor] More...
 
double getTemp ()
 [Interesting] More...
 

Constructor & Destructor Documentation

MAX31855 ( int  bus,
int  cs 
)

Instantiates an MAX31855 object

Parameters
busSPI bus to use
csChip select pin
~MAX31855 ( )

MAX31855 object destructor

[Destructor]

Member Function Documentation

double getTemp ( )

[Destructor]

Gets the distance from the sensor

Returns
Value in Celsius

[spi]

[spi]

[conversion]

[conversion]


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