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.
Diff: mmSPI.h
- Revision:
- 6:b480fc4e87e5
- Parent:
- 5:b14dcaae260e
- Child:
- 7:b3e8b537d5c2
diff -r b14dcaae260e -r b480fc4e87e5 mmSPI.h
--- a/mmSPI.h	Wed Aug 14 15:13:05 2013 +0000
+++ b/mmSPI.h	Wed Aug 14 15:19:24 2013 +0000
@@ -28,7 +28,9 @@
             ~mmSPI();                           // destructor.
         void allocations();                     // object allocations.
         void setSPIfrequency(float);            // set SPI clock frequency.
-        void transceive_byte(void);             // byte transceive.
+
+                                                // byte transceive.
+        void transceive_byte(char *cReceive, char *cSend);
       private:
       
       DigitalOut * pMOSI;                       // SPI pin.
@@ -36,8 +38,6 @@
       DigitalOut * pSCLK;                       // SPI pin.
       float        fSPIfreq;                    // SPI clock   frequency.
       float        fSPIquarterP;                // SPI quarter period.
-      char         cSend;                       // outgoing SPI byte.
-      char         cReceive;                    // incoming SPI byte.
       char         cLoop01;                     // loop index.