KIT Solar Car Project / Mbed 2 deprecated mbed_max6675_4_LM61_AEmicroSD

Dependencies:   mbed SDFileSystem

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers max6675_4.h Source File

max6675_4.h

00001 #ifndef MAX6675_4_h
00002 #define MAX6675_4_h
00003 
00004 #include "mbed.h"
00005 
00006 class max6675_4
00007 {
00008     SPI& spi_4;
00009     DigitalOut ncs_4;
00010   public:
00011   
00012     max6675_4(SPI& _spi_4, PinName _ncs_4);
00013     void select_4();
00014     void deselect_4();
00015     
00016     float read_temp_4();
00017   private:
00018     PinName _CS_pin_4;
00019     PinName _SO_pin_4;
00020     PinName _SCK_pin_4;
00021     int _units_4;
00022     float _error_4;
00023 };
00024 
00025 #endif