* no need to let them all scan
*/
dev = NULL;
- drivers = sr_hw_list();
+ drivers = sr_driver_list();
for (i = 0; drivers[i]; i++) {
if (strcmp(drivers[i]->name, devstring))
continue;
- num_devs = sr_hw_init(drivers[i]);
+ num_devs = sr_driver_init(drivers[i]);
if (num_devs == 1) {
devs = sr_dev_list();
dev = devs->data;
printf("sigrok-cli %s\n\n", VERSION);
printf("Supported hardware drivers:\n");
- drivers = sr_hw_list();
+ drivers = sr_driver_list();
for (i = 0; drivers[i]; i++) {
printf(" %-20s %s\n", drivers[i]->name, drivers[i]->longname);
}
return;
if (opt_continuous) {
- if (!sr_hw_has_hwcap(dev->driver, SR_HWCAP_CONTINUOUS)) {
+ if (!sr_driver_hwcap_exists(dev->driver, SR_HWCAP_CONTINUOUS)) {
printf("This device does not support continuous sampling.");
sr_session_destroy();
return;
return;
}
- if (sr_hw_has_hwcap(dev->driver, SR_HWCAP_LIMIT_MSEC)) {
+ if (sr_driver_hwcap_exists(dev->driver, SR_HWCAP_LIMIT_MSEC)) {
if (dev->driver->dev_config_set(dev->driver_index,
SR_HWCAP_LIMIT_MSEC, &time_msec) != SR_OK) {
printf("Failed to configure time limit.\n");