summaryrefslogtreecommitdiff
path: root/decoders/common
AgeCommit message (Collapse)Author
2020-07-26common: add LSB/MSB first bitpack variant with optional indexGerhard Sittig
The CAN decoder collects bits in MSB first order. The SIRC decoder keeps lists of tuples with bits and their ss/es. Introduce common logic for LSB and MSB first arguments, and optional array index access, to reduce redundancy at callers'.
2020-01-13sdcard_sd: Put card status fields in their own annotation classes.Uwe Hermann
This also fixes the CURRENT_STATE and RSVD_TESTMODE fields, which are not single-bit fields.
2020-01-10srdhelper: Add SrdStrEnum with various helper methods.Uwe Hermann
2020-01-10srdhelper: Add SrdIntEnum with various helper methods.Uwe Hermann
2018-07-15common: rephrase bitpack(), use list comprehension Python idiomGerhard Sittig
2018-06-22jtag_ejtag: Move bin2int() to common/srdhelper.Uwe Hermann
Also, rename from bin_to_int to bin2int() for consistency.
2017-12-09graycode: Move bitpack/bitunpack to common/.Uwe Hermann
2017-01-07license: remove FSF postal address from boiler plate license textGerhard Sittig
Remove the FSF postal address as it might change (it did in the past). Reference the gnu.org website instead which is more stable.
2016-05-25Move common/ directory into decoders/.Uwe Hermann
This simplifies cross-platform handling of the Python/decoder paths and module installation/dist a bit and also fixes bug #804.