tool/MasterDevice.cpp
changeset 1961 48f536aefc18
parent 1850 fa112b8a371b
child 1966 23c638a81fe7
equal deleted inserted replaced
1960:6c4269dca1c2 1961:48f536aefc18
   453     }
   453     }
   454 }
   454 }
   455 
   455 
   456 /****************************************************************************/
   456 /****************************************************************************/
   457 
   457 
       
   458 void MasterDevice::rescan()
       
   459 {
       
   460     if (ioctl(fd, EC_IOCTL_MASTER_RESCAN, 0) < 0) {
       
   461         stringstream err;
       
   462         err << "Failed to command rescan: " << strerror(errno);
       
   463         throw MasterDeviceException(err);
       
   464     }
       
   465 }
       
   466 
       
   467 /****************************************************************************/
       
   468 
   458 void MasterDevice::sdoDownload(ec_ioctl_slave_sdo_download_t *data)
   469 void MasterDevice::sdoDownload(ec_ioctl_slave_sdo_download_t *data)
   459 {
   470 {
   460     if (ioctl(fd, EC_IOCTL_SLAVE_SDO_DOWNLOAD, data) < 0) {
   471     if (ioctl(fd, EC_IOCTL_SLAVE_SDO_DOWNLOAD, data) < 0) {
   461         stringstream err;
   472         stringstream err;
   462         if (errno == EIO && data->abort_code) {
   473         if (errno == EIO && data->abort_code) {