SPI library used to communicate with an altera development board attached to four zigbee-header pins.
Diff: mmSPI.h
- Revision:
- 4:aa1fe8707bef
- Parent:
- 3:de99451ab3c0
- Child:
- 5:b14dcaae260e
--- a/mmSPI.h Wed Aug 14 10:45:33 2013 +0000 +++ b/mmSPI.h Wed Aug 14 14:47:12 2013 +0000 @@ -27,12 +27,15 @@ mmSPI(); // constructor. ~mmSPI(); // destructor. void allocations(); // object allocations. + void setSPIfrequency(float); // set SPI clock frequency. char transceive_byte(char); // byte transceive. private: DigitalOut * pMOSI; // SPI pin. DigitalOut * pMISO; // SPI pin. DigitalOut * pSCLK; // SPI pin. + float fSPIfreq; // SPI clock frequency. + float fSPIquarterP; // SPI quarter period.