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
mmSPI.cpp@1:15706d15d123, 2013-08-14 (annotated)
- Committer:
- gatedClock
- Date:
- Wed Aug 14 10:09:58 2013 +0000
- Revision:
- 1:15706d15d123
- Parent:
- 0:fb42c5acf810
- Child:
- 2:bebcf53b72dc
toward spi byte transceive.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gatedClock | 0:fb42c5acf810 | 1 | /*----------------------------------------------//------------------------------ |
gatedClock | 0:fb42c5acf810 | 2 | student : m-moore |
gatedClock | 0:fb42c5acf810 | 3 | class : external SPI interface |
gatedClock | 0:fb42c5acf810 | 4 | directory : mmSPI |
gatedClock | 0:fb42c5acf810 | 5 | file : mmSPI.cpp |
gatedClock | 0:fb42c5acf810 | 6 | ------------------------------------------------//----------------------------*/ |
gatedClock | 0:fb42c5acf810 | 7 | #include "mmSPI.h" |
gatedClock | 0:fb42c5acf810 | 8 | /*----------------------------------------------//------------------------------ |
gatedClock | 0:fb42c5acf810 | 9 | ------------------------------------------------//----------------------------*/ |
gatedClock | 0:fb42c5acf810 | 10 | //==============================================//============================== |
gatedClock | 0:fb42c5acf810 | 11 | mmSPI::mmSPI() // constructor. |
gatedClock | 0:fb42c5acf810 | 12 | { |
gatedClock | 0:fb42c5acf810 | 13 | |
gatedClock | 0:fb42c5acf810 | 14 | } |
gatedClock | 0:fb42c5acf810 | 15 | //----------------------------------------------//------------------------------ |
gatedClock | 0:fb42c5acf810 | 16 | mmSPI::~mmSPI() // destructor. |
gatedClock | 0:fb42c5acf810 | 17 | { |
gatedClock | 0:fb42c5acf810 | 18 | |
gatedClock | 0:fb42c5acf810 | 19 | } |
gatedClock | 0:fb42c5acf810 | 20 | //----------------------------------------------//------------------------------ |
gatedClock | 1:15706d15d123 | 21 | char mmSPI::transceive_byte(char cSend) // send/receive a byte. |
gatedClock | 1:15706d15d123 | 22 | { |
gatedClock | 1:15706d15d123 | 23 | |
gatedClock | 1:15706d15d123 | 24 | |
gatedClock | 1:15706d15d123 | 25 | |
gatedClock | 1:15706d15d123 | 26 | |
gatedClock | 1:15706d15d123 | 27 | } |
gatedClock | 1:15706d15d123 | 28 | //----------------------------------------------//------------------------------ |