Driver options

From sigrok
Revision as of 01:31, 12 January 2014 by Bert (talk | contribs) (Created page with "Every libsigrok driver can take options. These relate to the driver finding and connecting to the device; once it's discovered these options are not used. The following optio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Every libsigrok driver can take options. These relate to the driver finding and connecting to the device; once it's discovered these options are not used.

The following options are available, listen by configuration key:

SR_CONF_CONN

This option should be available in every driver, and identifies a connection string. The syntax of the string depends on the transport that driver can use to get to reach the device. Some driver can use more than one transport, for example on devices that have both a USB and serial port.

Transport
Serial Serial communication specification, in the form:

<baudrate>/<databits><parity><stopbits>

Example: 9600/8n1

The string may also be followed by one or more special settings, in the form "/key=value". Supported keys and their allowed values are:

rts 0, 1 set the port's RTS pin to low or high
dtr 0, 1 set the port's DTR pin to low or high
flow 0 no flow control
1 hardware-based (RTS/CTS) flow control
2 software-based (XON/XOFF) flow control