Santiago Escobar
/
Taller1
ss
max6675_2.h@0:ac37887d5bb2, 2021-02-22 (annotated)
- Committer:
- SantiagoE
- Date:
- Mon Feb 22 19:24:30 2021 +0000
- Revision:
- 0:ac37887d5bb2
ss
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SantiagoE | 0:ac37887d5bb2 | 1 | #ifndef MAX6675_2_h |
SantiagoE | 0:ac37887d5bb2 | 2 | #define MAX6675_2_h |
SantiagoE | 0:ac37887d5bb2 | 3 | |
SantiagoE | 0:ac37887d5bb2 | 4 | #include "mbed.h" |
SantiagoE | 0:ac37887d5bb2 | 5 | |
SantiagoE | 0:ac37887d5bb2 | 6 | class max6675_2 |
SantiagoE | 0:ac37887d5bb2 | 7 | { |
SantiagoE | 0:ac37887d5bb2 | 8 | SPI& spi_2; |
SantiagoE | 0:ac37887d5bb2 | 9 | DigitalOut ncs_2; |
SantiagoE | 0:ac37887d5bb2 | 10 | public: |
SantiagoE | 0:ac37887d5bb2 | 11 | |
SantiagoE | 0:ac37887d5bb2 | 12 | max6675_2(SPI& _spi_2, PinName _ncs_2); |
SantiagoE | 0:ac37887d5bb2 | 13 | void select_2(); |
SantiagoE | 0:ac37887d5bb2 | 14 | void deselect_2(); |
SantiagoE | 0:ac37887d5bb2 | 15 | |
SantiagoE | 0:ac37887d5bb2 | 16 | float read_temp_2(); |
SantiagoE | 0:ac37887d5bb2 | 17 | private: |
SantiagoE | 0:ac37887d5bb2 | 18 | PinName _CS_pin_2; |
SantiagoE | 0:ac37887d5bb2 | 19 | PinName _SO_pin_2; |
SantiagoE | 0:ac37887d5bb2 | 20 | PinName _SCK_pin_2; |
SantiagoE | 0:ac37887d5bb2 | 21 | int _units_2; |
SantiagoE | 0:ac37887d5bb2 | 22 | float _error_2; |
SantiagoE | 0:ac37887d5bb2 | 23 | }; |
SantiagoE | 0:ac37887d5bb2 | 24 | |
SantiagoE | 0:ac37887d5bb2 | 25 | #endif |