Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: UniGraphic mbed vt100
mbedSPI.h
00001 #ifndef _MBEDSPI_H_ 00002 #define _MBEDSPI_H_ 00003 #include "mbed.h" 00004 #include "afSPI.h" 00005 00006 class mbedSPI : public afSPI { 00007 public: 00008 mbedSPI(PinName mosi, PinName miso, PinName sckl, PinName cs) ; 00009 virtual void begin() ; 00010 virtual void beginSPI() ; 00011 virtual void endSPI() ; 00012 virtual void transfer(char *bytes,int len) ; 00013 private: 00014 SPI _spi ; 00015 DigitalOut _cs ; 00016 } ; 00017 00018 00019 #endif /* _MBEDSPI_H_ */
Generated on Tue Jul 12 2022 11:12:31 by
1.7.2