upm  1.3.0
Sensor/Actuator repository for libmraa (v1.7.0)
 All Data Structures Namespaces Files Functions Variables Typedefs 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.

#include "max31855.hpp"
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

busSPI bus to use
csChip select pin
~MAX31855 ( )

MAX31855 object destructor


Member Function Documentation

double getTemp ( )


Gets the distance from the sensor

Value in Celsius





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