diff -r da3d22a27500 -r 09c6fce1ae45 tool/MasterDevice.cpp --- a/tool/MasterDevice.cpp Mon Jan 26 11:59:32 2009 +0000 +++ b/tool/MasterDevice.cpp Mon Jan 26 13:01:58 2009 +0000 @@ -372,6 +372,32 @@ /****************************************************************************/ +void MasterDevice::readFoe( + ec_ioctl_slave_foe_t *data + ) +{ + if (ioctl(fd, EC_IOCTL_SLAVE_FOE_READ, data) < 0) { + stringstream err; + err << "Failed to read via FoE: " << strerror(errno); + throw MasterDeviceException(err); + } +} + +/****************************************************************************/ + +void MasterDevice::writeFoe( + ec_ioctl_slave_foe_t *data + ) +{ + if (ioctl(fd, EC_IOCTL_SLAVE_FOE_WRITE, data) < 0) { + stringstream err; + err << "Failed to write via FoE: " << strerror(errno); + throw MasterDeviceException(err); + } +} + +/****************************************************************************/ + void MasterDevice::setDebug(unsigned int debugLevel) { if (ioctl(fd, EC_IOCTL_MASTER_DEBUG, debugLevel) < 0) {