SPI library used to communicate with an altera development board attached to four zigbee-header pins.

mmSPI.cpp

Committer:
gatedClock
Date:
2013-08-14
Revision:
2:bebcf53b72dc
Parent:
1:15706d15d123
Child:
3:de99451ab3c0

File content as of revision 2:bebcf53b72dc:

/*----------------------------------------------//------------------------------
    student   : m-moore
    class     : external SPI interface
    directory : mmSPI
    file      : mmSPI.cpp
------------------------------------------------//----------------------------*/
    #include "mmSPI.h"
/*----------------------------------------------//------------------------------
------------------------------------------------//----------------------------*/
//==============================================//==============================
    mmSPI::mmSPI()                              // constructor.
    {
      pSCLK = new DigitalOut(p29);
    }
//----------------------------------------------//------------------------------    
    mmSPI::~mmSPI()                             // destructor.
    {

    }  
//----------------------------------------------//------------------------------
    char mmSPI::transceive_byte(char cSend)     // send/receive a byte.
    {
      *pSCLK = 1;
    
    
    
    }
//----------------------------------------------//------------------------------