tool/MasterDevice.h
changeset 1804 742607c464c4
parent 1516 e3b09f847512
child 1826 ec6223c3b7ec
equal deleted inserted replaced
1803:5b04770444df 1804:742607c464c4
    81     public:
    81     public:
    82         MasterDevice();
    82         MasterDevice();
    83         ~MasterDevice();
    83         ~MasterDevice();
    84 
    84 
    85         void setIndex(unsigned int);
    85         void setIndex(unsigned int);
    86 		unsigned int getIndex() const;
    86         unsigned int getIndex() const;
    87 
    87 
    88         enum Permissions {Read, ReadWrite};
    88         enum Permissions {Read, ReadWrite};
    89         void open(Permissions);
    89         void open(Permissions);
    90         void close();
    90         void close();
    91 
    91 
   109         void getSdoEntry(ec_ioctl_slave_sdo_entry_t *, uint16_t, int, uint8_t);
   109         void getSdoEntry(ec_ioctl_slave_sdo_entry_t *, uint16_t, int, uint8_t);
   110         void readSii(ec_ioctl_slave_sii_t *);
   110         void readSii(ec_ioctl_slave_sii_t *);
   111         void writeSii(ec_ioctl_slave_sii_t *);
   111         void writeSii(ec_ioctl_slave_sii_t *);
   112         void readReg(ec_ioctl_slave_reg_t *);
   112         void readReg(ec_ioctl_slave_reg_t *);
   113         void writeReg(ec_ioctl_slave_reg_t *);
   113         void writeReg(ec_ioctl_slave_reg_t *);
   114 		void setDebug(unsigned int);
   114         void setDebug(unsigned int);
   115 		void sdoDownload(ec_ioctl_slave_sdo_download_t *);
   115         void sdoDownload(ec_ioctl_slave_sdo_download_t *);
   116 		void sdoUpload(ec_ioctl_slave_sdo_upload_t *);
   116         void sdoUpload(ec_ioctl_slave_sdo_upload_t *);
   117 		void requestState(uint16_t, uint8_t);
   117         void requestState(uint16_t, uint8_t);
   118 		void readFoe(ec_ioctl_slave_foe_t *);
   118         void readFoe(ec_ioctl_slave_foe_t *);
   119         void writeFoe(ec_ioctl_slave_foe_t *);
   119         void writeFoe(ec_ioctl_slave_foe_t *);
   120 #ifdef EC_EOE
   120 #ifdef EC_EOE
   121         void getEoeHandler(ec_ioctl_eoe_handler_t *, uint16_t);
   121         void getEoeHandler(ec_ioctl_eoe_handler_t *, uint16_t);
   122 #endif
   122 #endif
   123 
   123 
   128 
   128 
   129 /****************************************************************************/
   129 /****************************************************************************/
   130 
   130 
   131 inline unsigned int MasterDevice::getIndex() const
   131 inline unsigned int MasterDevice::getIndex() const
   132 {
   132 {
   133 	return index;
   133     return index;
   134 }
   134 }
   135 
   135 
   136 /****************************************************************************/
   136 /****************************************************************************/
   137 
   137 
   138 #endif
   138 #endif