On 10/26/2014 01:13 PM, Bert Vermeulen wrote:
> On 10/26/2014 11:31 AM, Janne Huttunen wrote:

>> Yes, but that currently doesn't always work if I don't have
>> the device yet (sdi == NULL). At least these drivers return
>> an error if DEVICE_OPTIONS are tried to be listed without
>> a device:
> 
> Yeah, this is arguably a bug. These drivers basically present different
> options based on the type of device found, and on whether a channel group
> was selected. But they should also be returning what they can even without a
> device, such as SR_CONF_LCRMETER.

I've made a start on this by adding sr_config_info for all the device type
keys, fixing up sigrok-cli to properly use these, and fixed six drivers to
split off device option config keys depending on whether sdi and/or channel
group are available:

        http://sigrok.org/commits/libsigrok/8769478..933defa

So you can now do this:

sumner: ./sigrok-cli --driver atten-pps3203 --show
Driver functions:
    Power supply
    Continuous sampling
Scan options:
    conn
    serialcomm
No devices found.

Just 37 drivers to go... feel free to pitch in, anyone :)


-- 
Bert Vermeulen        [email protected]          email/xmpp

------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to