SPI library used to communicate with an altera development board attached to four zigbee-header pins.
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.