summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-26ntf905: Add/rename required self.reset() method.Uwe Hermann
2020-05-26Add decoder for Nordic Semiconductor nRF905 chipJorge Solla
2020-05-22Use PyLong_FromUnsignedLongLong() where needed.Uwe Hermann
There were a few places where PyLong_FromLong() was used for uint64_t numbers. Properly use PyLong_FromUnsignedLongLong() there, and also fix a few additional size/signedness issues while we're here. Reported (and partial patch provided) by "The Count" on Bugzilla, thanks! This fixes bug #1499.
2020-05-21type_decoder.c: Workaround for a compiler warning.Uwe Hermann
type_decoder.c:1040:16: warning: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’} [-Wcast-function-type] 1040 | { "register", (PyCFunction)Decoder_register, METH_VARARGS|METH_KEYWORDS, | ^
2020-05-21adxl345: Update register meaning for 0x21, 0x22, 0x23 regs.Teo Perisanu
On the Data row, the content of the single-byte registers is decoded as follows: '<Meaning> <Value> <Unit>'. Initially, the meaning for these registers was misplaced. This commit updates these meanings as they really are. Signed-off-by: Teo Perisanu <Teo.Perisanu@analog.com>
2020-04-11ad79x0: Rename the 'ref' option to 'vref'.Uwe Hermann
2020-04-11ad79x0: Reduce unnecessarily many voltage formats.Uwe Hermann
2020-04-11ad79x0: Fix the tags metadata item.Uwe Hermann
2020-04-11ad79x0: Avoid duplicated annotation class/row IDs.Uwe Hermann
2020-04-11Add AD79x0 decoder.Teo Perisanu
Signed-off-by: Teo Perisanu <Teo.Perisanu@analog.com>
2020-04-11ad5626: Always use the same number of decimal places.Uwe Hermann
2020-04-11ad5626: Rename an annotation class.Uwe Hermann
2020-04-11ad5626: Drop unnecessary annotation_rows item.Uwe Hermann
2020-04-11ad5626: Fix the tags metadata item.Uwe Hermann
2020-04-11Add AD5626 decoder.Teo Perisanu
Signed-off-by: Teo Perisanu <Teo.Perisanu@analog.com>
2020-04-11ltc242x: Reduce unnecessarily many voltage formats.Uwe Hermann
2020-04-11ltc242x: Put channel voltages on different annotation rows.Uwe Hermann
Drop the pure channel "marking" annotations, they're unneeded.
2020-04-11ltc242x: Use plural for annotation rows, avoid duplicates.Uwe Hermann
Since recent libsigrokdecode changes, annotation classes and rows must not have overlapping IDs.
2020-04-11ltc242x: Rename the 'ref' option to 'vref'.Uwe Hermann
2020-04-11ltc242x: Fix the tags metadata item.Uwe Hermann
2020-04-11Add LTC242x decoder.Teo Perisanu
Signed-off-by: Teo Perisanu <Teo.Perisanu@analog.com>
2020-04-11ltc26x7: Put channel voltages on different annotation rows.Uwe Hermann
2020-04-11ltc26x7: Reduce unnecessarily many voltage formats.Uwe Hermann
2020-04-11ltc26x7: Fix the default for the 'chip' option.Uwe Hermann
2020-04-11ltc26x7: Option renames for consistency.Uwe Hermann
The 'part' option is renamed to 'chip' (and 'ref' to 'vref') to be more consistent with the naming used in other decoders.
2020-04-11ltc26x7: Fix the tags metadata item.Uwe Hermann
2020-04-11ltc26x7: Drop unnecessary annotation_rows item.Uwe Hermann
All annotation classes are on the same row anyway, and the row name "LTC26x7 data" isn't all that much more useful than no row name at all.
2020-04-11Add LTC26x7 decoder.Teo Perisanu
Signed-off-by: Teo Perisanu <Teo.Perisanu@analog.com>
2020-04-11adxl345: Fix incorrect rate value in handle_reg_0x2c().Uwe Hermann
2020-04-11adxl345: Use all-lowercase method named for handle_reg_*.Uwe Hermann
2020-04-11adxl345: Use SrdIntEnum for the state machine.Uwe Hermann
2020-04-11adxl345: Use SrdIntEnum for annotation classes.Uwe Hermann
2020-04-11adxl345: Fix scale factor in handle_reg_0x22().Uwe Hermann
According to the datasheet, this should be 1.25 (ms/LSB).
2020-04-11adxl345: Shorten/simplify self.putbs() invocations.Uwe Hermann
2020-04-11adxl345: Shorten/simplify a few code snippets.Uwe Hermann
2020-04-11Add ADXL345 decoder.Teo Perisanu
Signed-off-by: Teo Perisanu <Teo.Perisanu@analog.com>
2020-01-13sdcard_sd: Automatically generate token field annotation classes.Uwe Hermann
2020-01-13sdcard_sd: Put 0/1 bits in different annotation classes.Uwe Hermann
This will allow for usage of different colors in UIs, and for showing/hiding them independently in UIs.
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-12sdcard_sd: Add basic support for CSD register fields.Uwe Hermann
2020-01-12sdcard_sd: Add basic support for CID register fields.Uwe Hermann
2020-01-12sdcard_sd: Rename some annotation classes.Uwe Hermann
The responses were simply named "R1" etc., but this becomes inconvenient when Ann.prefixeѕ('R') is used and other annotation classes also have names that start with 'R'. Hence, rename respose annotation classes to "RESPONSE_R1" etc.
2020-01-11sdcard_sd: Use a Bit class to improve readability.Uwe Hermann
Usually we'd use namedtuple(), but in this case we need to retro-actively modify the items, so that's not possible.
2020-01-11sdcard_sd: Replace a hardcoded number for better readability.Uwe Hermann
2020-01-11sdcard_sd: Clarify some variable/argument names.Uwe Hermann
Differentiate cmd (e.g. 55 or CMD55) vs. cmd_pin (the value of the CMD pin).
2020-01-11sdcard_sd: Remove a list that needs manual maintenance.Uwe Hermann
Instead of checking if a command is in a fixed list/tuple (that needs to be manually updated every time a new command becomes supported), simply check if the respective handling method for the command exists. This fixes the bug of the CMD16 handler not being called, and will prevent similar bugs in the future.
2020-01-10sdcard_sd: Use correct annotation class for R2.Uwe Hermann
2020-01-10cjtag: Use SrdIntEnum for cJTAG states.Uwe Hermann
2020-01-10sda2506: Use SrdIntEnum for pins.Uwe Hermann
2020-01-10tlc5620: Use SrdIntEnum for pins.Uwe Hermann