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.cpp
- Revision:
- 26:26a8f31a31b8
- Parent:
- 24:d3b8c68f41f2
- Child:
- 27:fb63c8b70bc2
diff -r 5bb59ae7b814 -r 26a8f31a31b8 mmSPI.cpp --- a/mmSPI.cpp Tue Aug 20 14:56:19 2013 +0000 +++ b/mmSPI.cpp Wed Aug 21 16:59:29 2013 +0000 @@ -122,6 +122,16 @@ } } //----------------------------------------------//------------------------------ +// cRegister -> CPU_register +// 0 R0 +// 1 R1 +// 2 R2 +// 3 R3 +// 4 PC +// 5 <meta, don't do> +// 6 <nothing> +// 7 <nothing> + void mmSPI::write_register(char cRegister, char cValue) { int dLoop; // loop index. @@ -139,6 +149,15 @@ clear_transmit_vector(); // clear transmit vector. } //----------------------------------------------//------------------------------ +// cRegister -> CPU_register +// 0 -> R0 +// 1 -> R1 +// 2 -> R2 +// 3 -> R3 +// 4 -> PC +// 5 -> IR-H +// 6 -> IR-L +// 7 -> <never-use> // returns the content of // a CPU register. char mmSPI::read_register(char cRegister)