SPI library used to communicate with an altera development board attached to four zigbee-header pins.
Diff: mmSPI.h
- Revision:
- 7:b3e8b537d5c2
- Parent:
- 6:b480fc4e87e5
- Child:
- 8:e2d8bbc3e659
diff -r b480fc4e87e5 -r b3e8b537d5c2 mmSPI.h --- a/mmSPI.h Wed Aug 14 15:19:24 2013 +0000 +++ b/mmSPI.h Wed Aug 14 15:34:10 2013 +0000 @@ -31,6 +31,9 @@ // byte transceive. void transceive_byte(char *cReceive, char *cSend); + + // byte-array transceive. + void transceive_vector(char *cReceive, char *cSend, char cNumBytes); private: DigitalOut * pMOSI; // SPI pin. @@ -39,6 +42,7 @@ float fSPIfreq; // SPI clock frequency. float fSPIquarterP; // SPI quarter period. char cLoop01; // loop index. + char cLoop02; // loop index.