Lines Matching refs:a
1 Making a UPM module for MAX31855 {#max31855}
4 The Maxim Integrated MAX31855 is a thermocouple amplifier allowing you to read
5 from a K type thermocouple. My board comes from the Pmod kit form Maxim
7 people made arduino code already so we'll use that as a
12 This is a spi module so we will use the mraa spi functions to build our module.
13 First thing to do is to create a tree structure like this in upm/src/max31855:
34 either of those args. The upm.i is just a shortcut to include some commonly
39 Then we create the header (max31855.h) , a very simple header in our case we
40 will have only a very basic api. We provide a getTemp() function which will
41 return the same type as in the arduino library, a double.
50 In the adafruit library the read function (our chip is a 3pin SPI so only read
54 Note unlike on Arduino, we'll just set a 2Mhz clock and let the chip do the
59 Then we also need to implement a nice cleanup in our destructor.
63 Then to read data, we will use spi_write_buf which will allow us to write a
71 uint8_t values a 32bit int value and select only the valuable parts of
75 useful to us and converting it to a double.