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:
- 4:aa1fe8707bef
- Parent:
- 3:de99451ab3c0
- Child:
- 5:b14dcaae260e
diff -r de99451ab3c0 -r aa1fe8707bef mmSPI.h --- 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.