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.
Dependents: rover_car rover_pc supervisor watering_unit ... more
ssWiPort.cpp
- Committer:
- mariob
- Date:
- 2012-09-06
- Revision:
- 0:cc7218c5e5f7
- Child:
- 4:dbbf82c966c2
File content as of revision 0:cc7218c5e5f7:
#include "ssWiPort.hpp"
PortValue ssWiPort::getTXValue()
{
PortValue tmp;
mutexTX.lock();
tmp = valueTX;
modified = false;
mutexTX.unlock();
return tmp;
}
void ssWiPort::setTXValue(PortValue tmp)
{
mutexTX.lock();
valueTX = tmp;
modified = true;
mutexTX.unlock();
}
bool ssWiPort::isModified()
{
bool tmp;
mutexTX.lock();
tmp = modified;
mutexTX.unlock();
return tmp;
}
PortValue ssWiPort::getRXValue()
{
PortValue tmp;
mutexRX.lock();
tmp = valueRX;
mutexRX.unlock();
return tmp;
}
void ssWiPort::setRXValue(PortValue tmp)
{
mutexRX.lock();
valueRX = tmp;
mutexRX.unlock();
}