Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;
}
//----------------------------------------------//------------------------------