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

Revision:
23:dbd89a56716d
Parent:
22:7524dee5c753
Child:
24:d3b8c68f41f2
--- a/mmSPI.h	Tue Aug 20 14:13:32 2013 +0000
+++ b/mmSPI.h	Tue Aug 20 14:25:47 2013 +0000
@@ -32,16 +32,16 @@
 
                                                 // byte transceive.
 
-        
-         void transceive_vector(char *cReceive, char *cSend, int cNumBytes);
+                                                // SPI transceive loop.
+        void transceive_vector();
         
 
-        
-        void write_register(char, char, char *, char *);
-        char read_register(char, char *, char *);
+                                
+        void write_register(char cRegister, char cValue);
+        char read_register(char cRegister);
 
-        void write_memory(char, char, char, char *, char *);
-        unsigned int read_memory(char, char *, char *);
+        void write_memory(char cHData, char cLdata, char cAddress);
+        unsigned int read_memory(char cAddress);
         
         void setSendBuffer(char * pcSendBuffer);
         void setReceiveBuffer(char * pcReceiveBuffer);
@@ -60,9 +60,6 @@
       int          dNumBytes;                   // number of SPI bytes.
       int          dLoop01;                     // loop index.
       int          dLoop02;                     // loop index.
-      
-      
-
     };
 //----------------------------------------------//------------------------------
 #endif                                          // include guard.
\ No newline at end of file