#define SERIALCOMM "9600/8e1"
static const int hwopts[] = {
- SR_HWOPT_CONN,
- SR_HWOPT_SERIALCOMM,
+ SR_CONF_CONN,
+ SR_CONF_SERIALCOMM,
0,
};
static const int hwcaps[] = {
- SR_HWCAP_SOUNDLEVELMETER,
- SR_HWCAP_LIMIT_SAMPLES,
- SR_HWCAP_CONTINUOUS,
+ SR_CONF_SOUNDLEVELMETER,
+ SR_CONF_LIMIT_SAMPLES,
+ SR_CONF_CONTINUOUS,
0,
};
continue;
}
switch (src->key) {
- case SR_HWOPT_CONN:
+ case SR_CONF_CONN:
conn = src->value;
break;
- case SR_HWOPT_SERIALCOMM:
+ case SR_CONF_SERIALCOMM:
serialcomm = src->value;
break;
default:
devc = sdi->priv;
switch (hwcap) {
- case SR_HWCAP_LIMIT_SAMPLES:
+ case SR_CONF_LIMIT_SAMPLES:
devc->limit_samples = *(const uint64_t *)value;
sr_dbg("Setting sample limit to %" PRIu64 ".",
devc->limit_samples);