upm  0.5.1
Sensor/Actuator repository for libmraa (v0.9.1)
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Public Member Functions
MAX31855 Class Reference

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.h"
int
main(int argc, char **argv)
{
upm::MAX31855 *temp = new upm::MAX31855(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: