equal
deleted
inserted
replaced
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) { |