This is an involuntary fork, created because the repository would not update mmSPI. SPI library used to communicate with an altera development board attached to four zigbee-header pins.
Dependents: Embedded_RTOS_Project
Fork of mmSPI by
Diff: mmSPI.h
- Revision:
- 5:b14dcaae260e
- Parent:
- 4:aa1fe8707bef
- Child:
- 6:b480fc4e87e5
--- a/mmSPI.h Wed Aug 14 14:47:12 2013 +0000 +++ b/mmSPI.h Wed Aug 14 15:13:05 2013 +0000 @@ -28,7 +28,7 @@ ~mmSPI(); // destructor. void allocations(); // object allocations. void setSPIfrequency(float); // set SPI clock frequency. - char transceive_byte(char); // byte transceive. + void transceive_byte(void); // byte transceive. private: DigitalOut * pMOSI; // SPI pin. @@ -36,6 +36,9 @@ 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.