Gas Pressure Display Updated Power control for Pressure sensor added
Dependencies: UniGraphic mbed vt100
af_utils/mbedSPI.h@0:37c8ecde13c2, 2018-02-16 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Feb 16 08:27:50 2018 +0000
- Revision:
- 0:37c8ecde13c2
control PSE530 power via PTC5 (pse530_en)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:37c8ecde13c2 | 1 | #ifndef _MBEDSPI_H_ |
Rhyme | 0:37c8ecde13c2 | 2 | #define _MBEDSPI_H_ |
Rhyme | 0:37c8ecde13c2 | 3 | #include "mbed.h" |
Rhyme | 0:37c8ecde13c2 | 4 | #include "afSPI.h" |
Rhyme | 0:37c8ecde13c2 | 5 | |
Rhyme | 0:37c8ecde13c2 | 6 | class mbedSPI : public afSPI { |
Rhyme | 0:37c8ecde13c2 | 7 | public: |
Rhyme | 0:37c8ecde13c2 | 8 | mbedSPI(PinName mosi, PinName miso, PinName sckl, PinName cs) ; |
Rhyme | 0:37c8ecde13c2 | 9 | virtual void begin() ; |
Rhyme | 0:37c8ecde13c2 | 10 | virtual void beginSPI() ; |
Rhyme | 0:37c8ecde13c2 | 11 | virtual void endSPI() ; |
Rhyme | 0:37c8ecde13c2 | 12 | virtual void transfer(char *bytes,int len) ; |
Rhyme | 0:37c8ecde13c2 | 13 | private: |
Rhyme | 0:37c8ecde13c2 | 14 | SPI _spi ; |
Rhyme | 0:37c8ecde13c2 | 15 | DigitalOut _cs ; |
Rhyme | 0:37c8ecde13c2 | 16 | } ; |
Rhyme | 0:37c8ecde13c2 | 17 | |
Rhyme | 0:37c8ecde13c2 | 18 | |
Rhyme | 0:37c8ecde13c2 | 19 | #endif /* _MBEDSPI_H_ */ |