--- a/tool/MasterDevice.cpp Mon Jan 19 10:17:21 2009 +0000
+++ b/tool/MasterDevice.cpp Mon Jan 19 10:18:41 2009 +0000
@@ -346,6 +346,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) {