tool/MasterDevice.h
changeset 1831 1875b9fea0ba
parent 1826 ec6223c3b7ec
child 1835 20748e9d2238
equal deleted inserted replaced
1830:ef09f0ea0c4c 1831:1875b9fea0ba
    65 
    65 
    66     public:
    66     public:
    67         uint32_t abortCode;
    67         uint32_t abortCode;
    68     
    68     
    69     protected:
    69     protected:
    70         /** Constructor with stringstream parameter. */
    70         /** Constructor with abort code parameter. */
    71         MasterDeviceSdoAbortException(uint32_t code):
    71         MasterDeviceSdoAbortException(uint32_t code):
    72             MasterDeviceException("SDO transfer aborted.") {
    72             MasterDeviceException("SDO transfer aborted.") {
    73                 abortCode = code;
    73                 abortCode = code;
       
    74             };
       
    75 };
       
    76 
       
    77 /****************************************************************************/
       
    78 
       
    79 class MasterDeviceSoeException:
       
    80     public MasterDeviceException 
       
    81 {
       
    82     friend class MasterDevice;
       
    83 
       
    84     public:
       
    85         uint16_t errorCode;
       
    86     
       
    87     protected:
       
    88         /** Constructor with error code parameter. */
       
    89         MasterDeviceSoeException(uint16_t code):
       
    90             MasterDeviceException("SoE transfer aborted.") {
       
    91                 errorCode = code;
    74             };
    92             };
    75 };
    93 };
    76 
    94 
    77 /****************************************************************************/
    95 /****************************************************************************/
    78 
    96 
   120         void readFoe(ec_ioctl_slave_foe_t *);
   138         void readFoe(ec_ioctl_slave_foe_t *);
   121         void writeFoe(ec_ioctl_slave_foe_t *);
   139         void writeFoe(ec_ioctl_slave_foe_t *);
   122 #ifdef EC_EOE
   140 #ifdef EC_EOE
   123         void getEoeHandler(ec_ioctl_eoe_handler_t *, uint16_t);
   141         void getEoeHandler(ec_ioctl_eoe_handler_t *, uint16_t);
   124 #endif
   142 #endif
       
   143         void readSoe(ec_ioctl_slave_soe_t *);
   125 
   144 
   126         unsigned int getMasterCount() const {return masterCount;}
   145         unsigned int getMasterCount() const {return masterCount;}
   127 
   146 
   128     private:
   147     private:
   129         unsigned int index;
   148         unsigned int index;