]> sigrok.org Git - libsigrokdecode.git/commit
Change PD options to be a tuple of dictionaries.
authorBert Vermeulen <redacted>
Sun, 9 Mar 2014 22:48:27 +0000 (23:48 +0100)
committerBert Vermeulen <redacted>
Sun, 9 Mar 2014 23:47:30 +0000 (00:47 +0100)
commit84c1c0b52820af2418186ac3ecf93a5c6373a22e
treeae26f32b7c77646179369fcbe089b91e2c236665
parentcfe46204d1c91f02d0e2c6679a2d15ff92bb90c8
Change PD options to be a tuple of dictionaries.

Each option consists of a dictionary with the following keys:

  id      The option id, which is passed in when setting a value.
  desc    A description of the option, suitable for display.
  def     The default value for this option.
  values  (optional) If present, a tuple containing values the option
          may take. They must be of the same type as the default.

Valid types for the options are UTF-8-encoded strings, integers, and
floating point values.
13 files changed:
decoder.c
decoders/can/pd.py
decoders/i2c/pd.py
decoders/i2cfilter/pd.py
decoders/lm75/pd.py
decoders/onewire_link/pd.py
decoders/parallel/pd.py
decoders/spi/pd.py
decoders/uart/pd.py
decoders/usb_packet/pd.py
decoders/usb_signalling/pd.py
instance.c
libsigrokdecode.h