Module common_cmd

Source

Structs§

Cmd
Host to Card commands
R1
R1: Normal response
R2
R2: CID and CSD register
R3
R3: OCR register
Rz
Marker for commands that don’t have any response

Enums§

ResponseLen
Command Response type

Traits§

Resp

Functions§

all_send_cid
CMD2: Ask any card to send their CID
app_cmd
CMD55: App Command. Indicates that next command will be a app command
card_status
CMD13: Ask card to send status or task status
cmd
erase
CMD38: Erase all previously selected write blocks
go_inactive_state
CMD15: Sends card to inactive state
idle
CMD0: Put card in idle mode
program_csd
CMD27: Program CSD
read_multiple_blocks
CMD18: Read multiple block from the card
read_single_block
CMD17: Read a single block from the card
select_card
CMD7: Select or deselect card
send_cid
CMD10: Send CID
send_csd
CMD9: Send CSD
set_block_length
CMD16: Set block len
stop_transmission
CMD12: Stop transmission
write_multiple_blocks
CMD25: Write multiple blocks
write_single_block
CMD24: Write block