diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-13 00:26:46 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-01-13 00:39:20 +0100 |
commit | 2729ea3e586a64d8e84ef473cdc5fc5730953abd (patch) | |
tree | 1237b57ddb68c29cc31ac2b8f97eb5d142280f30 /decoders/common | |
parent | 73957cba3491dc151f731ca8e7ca01d36fb62e81 (diff) | |
download | libsigrokdecode-2729ea3e586a64d8e84ef473cdc5fc5730953abd.tar.gz libsigrokdecode-2729ea3e586a64d8e84ef473cdc5fc5730953abd.zip |
sdcard_sd: Put card status fields in their own annotation classes.
This also fixes the CURRENT_STATE and RSVD_TESTMODE fields, which are
not single-bit fields.
Diffstat (limited to 'decoders/common')
-rw-r--r-- | decoders/common/sdcard/mod.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/decoders/common/sdcard/mod.py b/decoders/common/sdcard/mod.py index cc9d70d..ae4658f 100644 --- a/decoders/common/sdcard/mod.py +++ b/decoders/common/sdcard/mod.py @@ -144,41 +144,6 @@ accepted_voltages = { # All other values: "not defined". } -card_status = { - 0: 'Reserved for manufacturer test mode', - 1: 'Reserved for manufacturer test mode', - 2: 'Reserved for application specific commands', - 3: 'AKE_SEQ_ERROR', - 4: 'Reserved for SDIO card', - 5: 'APP_CMD', - 6: 'Unknown', - 7: 'Unknown', - 8: 'READY_FOR_DATA', - 9: 'CURRENT_STATE', # CURRENT_STATE is a 4-bit value (decimal: 0..15). - 10: 'CURRENT_STATE', - 11: 'CURRENT_STATE', - 12: 'CURRENT_STATE', - 13: 'ERASE_RESET', - 14: 'CARD_ECC_DISABLED', - 15: 'WP_ERASE_SKIP', - 16: 'CSD_OVERWRITE', - 17: 'Reserved for DEFERRED_RESPONSE', # See eSD addendum - 18: 'Reserved', - 19: 'ERROR', - 20: 'CC_ERROR', - 21: 'CARD_ECC_FAILED', - 22: 'ILLEGAL_COMMAND', - 23: 'COM_CRC_ERROR', - 24: 'LOCK_UNLOCK_FAILED', - 25: 'CARD_IS_LOCKED', - 26: 'WP_VIOLATION', - 27: 'ERASE_PARAM', - 28: 'ERASE_SEQ_ERROR', - 29: 'BLOCK_LEN_ERROR', - 30: 'ADDRESS_ERROR', - 31: 'OUT_OF_RANGE', -} - sd_status = { # 311:0: Reserved for manufacturer # 391:312: Reserved |