SPI library used to communicate with an altera development board attached to four zigbee-header pins.
mmSPI.h
- Committer:
- gatedClock
- Date:
- 2013-08-14
- Revision:
- 1:15706d15d123
- Parent:
- 0:fb42c5acf810
- Child:
- 2:bebcf53b72dc
File content as of revision 1:15706d15d123:
/*----------------------------------------------//------------------------------ student : m-moore class : external SPI interface directory : mmSPI file : mmSPI.h ----description---------------------------------//------------------------------ ----notes---------------------------------------//------------------------------ 1. the SPI interface pins are routed to the zigbee header. ------------------------------------------------//----------------------------*/ #include "mbed.h" // standard mbed.org class. //---defines------------------------------------//------------------------------ #define MOSI p9 // SPI interface pin. #define MISO p10 // SPI interface pin. #define SCLK p30 // SPI interface pin. /*----------------------------------------------//------------------------------ ------------------------------------------------//----------------------------*/ //==============================================//============================== class mmSPI { public: mmSPI(); // constructor. ~mmSPI(); // destructor. char transceive_byte(char); // byte transceive. private: }; //----------------------------------------------//------------------------------