SPI library used to communicate with an altera development board attached to four zigbee-header pins.

Revision:
2:bebcf53b72dc
Parent:
1:15706d15d123
Child:
3:de99451ab3c0
--- a/mmSPI.h	Wed Aug 14 10:09:58 2013 +0000
+++ b/mmSPI.h	Wed Aug 14 10:30:30 2013 +0000
@@ -1,3 +1,5 @@
+#ifndef mmSPI_H                                 // include guard.
+#define mmSPI_H                                 // include guard.
 /*----------------------------------------------//------------------------------
     student   : m-moore
     class     : external SPI interface
@@ -12,8 +14,14 @@
     #define MOSI p9                             // SPI interface pin.
     #define MISO p10                            // SPI interface pin.
     #define SCLK p30                            // SPI interface pin.
+    
+    
+//DigitalOut xbee_nrst(p30);
+//DigitalOut xbee_tx(p9);
+//DigitalOut xbee_rx(p10);
 /*----------------------------------------------//------------------------------  
 ------------------------------------------------//----------------------------*/
+
 //==============================================//==============================
     class mmSPI
     {
@@ -22,5 +30,10 @@
             ~mmSPI();                           // destructor.
         char transceive_byte(char);             // byte transceive.
       private:
+      
+      DigitalOut * pSCLK;
+      
+
     };
-//----------------------------------------------//------------------------------
\ No newline at end of file
+//----------------------------------------------//------------------------------
+#endif                                          // include guard.
\ No newline at end of file