Bug 1465 - driver should reflect detected devices' capabilities
Summary: driver should reflect detected devices' capabilities
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: openbench-logic-sniffer (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-27 11:24 CET by Gerhard Sittig
Modified: 2019-12-27 11:24 CET (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Sittig 2019-12-27 11:24:21 CET
The current implementation of the ols device driver announces a feature set 
which appears to be the superset of all known and supported devices. See for 
instance the samplerate (10Hz to 200MHz in steps of 1Hz).

When the specific device which is attached gets detected at runtime, the 
library's API will not adjust the set of features or parameter value limits 
to the detected device. Instead the full feature set still gets announced, 
while later "set" requests may get rejected when they exceed the device's 
capabilities.

It is desirable to have the ols driver adjust the set of announced features 
to the specific device which was detected. So that applications can avoid 
presenting options and values to users which actually are not available.