equal
deleted
inserted
replaced
198 } |
198 } |
199 } |
199 } |
200 |
200 |
201 /****************************************************************************/ |
201 /****************************************************************************/ |
202 |
202 |
|
203 void MasterDevice::getConfigIdn( |
|
204 ec_ioctl_config_idn_t *data, |
|
205 unsigned int index, |
|
206 unsigned int pos |
|
207 ) |
|
208 { |
|
209 data->config_index = index; |
|
210 data->idn_pos = pos; |
|
211 |
|
212 if (ioctl(fd, EC_IOCTL_CONFIG_IDN, data) < 0) { |
|
213 stringstream err; |
|
214 err << "Failed to get slave config IDN: " << strerror(errno); |
|
215 throw MasterDeviceException(err); |
|
216 } |
|
217 } |
|
218 |
|
219 /****************************************************************************/ |
|
220 |
203 void MasterDevice::getDomain(ec_ioctl_domain_t *data, unsigned int index) |
221 void MasterDevice::getDomain(ec_ioctl_domain_t *data, unsigned int index) |
204 { |
222 { |
205 data->index = index; |
223 data->index = index; |
206 |
224 |
207 if (ioctl(fd, EC_IOCTL_DOMAIN, data)) { |
225 if (ioctl(fd, EC_IOCTL_DOMAIN, data)) { |