tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/sdcard/const.go (about)

     1  package sdcard
     2  
     3  const (
     4  	CMD0_GO_IDLE_STATE              = 0
     5  	CMD1_SEND_OP_CND                = 1
     6  	CMD2_ALL_SEND_CID               = 2
     7  	CMD3_SEND_RELATIVE_ADDR         = 3
     8  	CMD4_SET_DSR                    = 4
     9  	CMD6_SWITCH_FUNC                = 6
    10  	CMD7_SELECT_DESELECT_CARD       = 7
    11  	CMD8_SEND_IF_COND               = 8
    12  	CMD9_SEND_CSD                   = 9
    13  	CMD10_SEND_CID                  = 10
    14  	CMD12_STOP_TRANSMISSION         = 12
    15  	CMD13_SEND_STATUS               = 13
    16  	CMD15_GO_INACTIVE_STATE         = 15
    17  	CMD16_SET_BLOCKLEN              = 16
    18  	CMD17_READ_SINGLE_BLOCK         = 17
    19  	CMD18_READ_MULTIPLE_BLOCK       = 18
    20  	CMD24_WRITE_BLOCK               = 24
    21  	CMD25_WRITE_MULTIPLE_BLOCK      = 25
    22  	CMD27_PROGRAM_CSD               = 27
    23  	CMD28_SET_WRITE_PROT            = 28
    24  	CMD29_CLR_WRITE_PROT            = 29
    25  	CMD30_SEND_WRITE_PROT           = 30
    26  	CMD32_ERASE_WR_BLK_START_ADDR   = 32
    27  	CMD33_ERASE_WR_BLK_END_ADDR     = 33
    28  	CMD38_ERASE                     = 38
    29  	CMD42_LOCK_UNLOCK               = 42
    30  	CMD55_APP_CMD                   = 55
    31  	CMD56_GEN_CMD                   = 56
    32  	CMD58_READ_OCR                  = 58
    33  	CMD59_CRC_ON_OFF                = 59
    34  	ACMD6_SET_BUS_WIDTH             = 6
    35  	ACMD13_SD_STATUS                = 13
    36  	ACMD22_SEND_NUM_WR_BLOCKS       = 22
    37  	ACMD23_SET_WR_BLK_ERASE_COUNT   = 23
    38  	ACMD41_SD_APP_OP_COND           = 41
    39  	ACMD42_SET_CLR_CARD_DETECT      = 42
    40  	ACMD51_SEND_SCR                 = 51
    41  	ACMD18_SECURE_READ_MULTI_BLOCK  = 18
    42  	ACMD25_SECURE_WRITE_MULTI_BLOCK = 25
    43  	ACMD26_SECURE_WRITE_MKB         = 26
    44  	ACMD38_SECURE_ERASE             = 38
    45  	ACMD43_GET_MKB                  = 43
    46  	ACMD44_GET_MID                  = 44
    47  	ACMD45_SET_CER_RN1              = 45
    48  	ACMD46_SET_CER_RN2              = 46
    49  	ACMD47_SET_CER_RES2             = 47
    50  	ACMD48_SET_CER_RES1             = 48
    51  	ACMD49_CHANGE_SECURE_AREA       = 49
    52  )