forked library from davervw/SWSPI

Dependents:   11u35_usbLocalFilesystem

Fork of SWSPI by Dave Van Wagner

Revision:
1:0f59aa4b839f
Parent:
0:6a500a08c7fd
Child:
2:457a920a1223
--- a/SWSPI.h	Tue Feb 04 06:54:01 2014 +0000
+++ b/SWSPI.h	Tue Oct 06 02:12:46 2015 +0000
@@ -49,15 +49,17 @@
 class SWSPI
 {
 private:
-    DigitalOut* mosi;
-    DigitalIn* miso;
-    DigitalOut* sclk;
+    uint8_t fast_write(uint8_t value);
+    DigitalInOut* mosi;
+    DigitalInOut* miso;
+    DigitalInOut* sclk;
     int port;
     int bits;
     int mode;
     int polarity; // idle clock value
     int phase; // 0=sample on leading (first) clock edge, 1=trailing (second)
     int freq;
+    bool _fast;
     
 public:
     /** Create SWSPI object