--- a/tool/MasterDevice.h Fri Feb 26 18:22:02 2010 +0100
+++ b/tool/MasterDevice.h Mon Mar 01 18:33:42 2010 +0100
@@ -67,7 +67,7 @@
uint32_t abortCode;
protected:
- /** Constructor with stringstream parameter. */
+ /** Constructor with abort code parameter. */
MasterDeviceSdoAbortException(uint32_t code):
MasterDeviceException("SDO transfer aborted.") {
abortCode = code;
@@ -76,6 +76,24 @@
/****************************************************************************/
+class MasterDeviceSoeException:
+ public MasterDeviceException
+{
+ friend class MasterDevice;
+
+ public:
+ uint16_t errorCode;
+
+ protected:
+ /** Constructor with error code parameter. */
+ MasterDeviceSoeException(uint16_t code):
+ MasterDeviceException("SoE transfer aborted.") {
+ errorCode = code;
+ };
+};
+
+/****************************************************************************/
+
class MasterDevice
{
public:
@@ -122,6 +140,7 @@
#ifdef EC_EOE
void getEoeHandler(ec_ioctl_eoe_handler_t *, uint16_t);
#endif
+ void readSoe(ec_ioctl_slave_soe_t *);
unsigned int getMasterCount() const {return masterCount;}