summaryrefslogtreecommitdiff
path: root/decoders/sdcard_sd
AgeCommit message (Collapse)Author
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-10sdcard_sd: Use SrdIntEnum for pins.Uwe Hermann
2020-01-10sdcard_sd: Simplify self.putr() invocations.Uwe Hermann
2020-01-10sdcard_sd: Put responses in their own annotation classes.Uwe Hermann
Also, rename "reply" to "response" to use the wording from the spec.
2020-01-10sdcard_sd: Use SrdIntEnum for annotation classes.Uwe Hermann
2020-01-10sdcard_sd: Use SrdStrEnum for the state machine.Uwe Hermann
2020-01-01All PDs: Consistently use singular/plural for annotation classes/rows.Uwe Hermann
2019-04-02decoders: Fix incorrect 'outputs' fields.Uwe Hermann
Only add items to 'outputs' if the respective PD actually has OUTPUT_PYTHON support implemented as of right now. Various decoders might get OUTPUT_PYTHON support later, but the 'outputs' field should reflect the current status.
2019-03-15decoders: Add/update tags for each PD.Uwe Hermann
2019-03-13Add PD tags handling and some tagsSoeren Apel
2017-12-22all decoders: introduce a reset() methodGerhard Sittig
Move initialization code of protocol decoders from the constructor to a new reset() helper method. The libsigrokdecode backend could run this method several times to clear the decoder's internal state, before new data from another acquisition gets fed to decode() calls.
2017-12-22sdcard_sd: remove unused .reset() methodGerhard Sittig
The decoder's .reset() method seems to partially implement constructor's assignments, but is not referenced anywhere. There is neither a direct call site in the remainder of pd.py which uses the "reset" name, and runtime computation only references "handle_*()" methods for commands and responses. Drop the unused .reset() method in the individual decoder before the introduction of a common .reset() method approach for all decoders.
2017-05-13sdcard_sd: reference latest command when displaying responseWolfram Sang
Replace the hardcoded value with the last cmd used. I'd think the whole ACMD handling could be simplified if we make further use of this new variable. But for now, let's keep it simple and make it work. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-05-13sdcard_sd: output CMD8 in cmd8-handlerWolfram Sang
Probably a typo, currently 'cmd0' gets pushed out. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-05-06sdcard_sd: remove unused functionsWolfram Sang
putr2 is unused, so let it go. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-05-02sdcard_sd: really show result of SET_BLOCKLENWolfram Sang
Now that self.arg is populated, we can finally use it. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-05-02sdcard_sd: always show CMD argument in hexWolfram Sang
This is especially useful with the default handler, so you can better understand the transfer if you are already familiar with CMD numbers and their arguments. It makes it also easier to compare with the debug output of the e.g. Linux Kernel. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-05-02sdcard_sd: don't interate over not implemented commandWolfram Sang
There is no handler for CMD4 yet. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
2017-01-18sdcard_sd: Convert to PD API version 3Gerhard Sittig
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.
2016-05-15Use consistent __init__() format across all PDs.Uwe Hermann
The previous **kwargs some PDs had is not actually ever used, so drop it.
2016-05-09Factor out SD card lists into common/sdcard.Uwe Hermann
These are used by the sdcard_spi and sdcard_sd decoders.
2015-08-06Add initial SD card (SD mode) decoder.Uwe Hermann
In the current state the decoder can decode the following commands: CMD0, CMD2, CMD3, CMD6, CMD7, CMD8, CMD9, CMD10, CMD13, CMD16, CMD55, ACMD6, ACMD13, ACMD41, ACMD51. Other commands (and more details for existing commands) will be added later.