STSW-STLKT01: SENSORTILE_SD Exported Constants

STSW-STLKT01

STSW-STLKT01
SENSORTILE_SD Exported Constants

Macros

#define STD_CAPACITY_SD_CARD_V1_1   ((uint32_t)0x00000000)
 Supported SD Memory Cards.
 
#define STD_CAPACITY_SD_CARD_V2_0   ((uint32_t)0x00000001)
 
#define HIGH_CAPACITY_SD_CARD   ((uint32_t)0x00000002)
 
#define SD_START_DATA_SINGLE_BLOCK_READ   0xFE /* Data token start byte, Start Single Block Read */
 Start Data tokens: Tokens (necessary because at nop/idle (and CS active) only 0xff is on the data/command line)
 
#define SD_START_DATA_MULTIPLE_BLOCK_READ   0xFE /* Data token start byte, Start Multiple Block Read */
 
#define SD_START_DATA_SINGLE_BLOCK_WRITE   0xFE /* Data token start byte, Start Single Block Write */
 
#define SD_START_DATA_MULTIPLE_BLOCK_WRITE   0xFD /* Data token start byte, Start Multiple Block Write */
 
#define SD_STOP_DATA_MULTIPLE_BLOCK_WRITE   0xFD /* Data toke stop byte, Stop Multiple Block Write */
 
#define SD_PRESENT   ((uint8_t)0x01)
 SD detection on its memory slot.
 
#define SD_NOT_PRESENT   ((uint8_t)0x00)
 
#define SD_CMD_GO_IDLE_STATE   ((uint8_t)0)
 SD Commands Index. More...
 
#define SD_CMD_SEND_OP_COND   ((uint8_t)1)
 
#define SD_CMD_ALL_SEND_CID   ((uint8_t)2)
 
#define SD_CMD_SET_REL_ADDR   ((uint8_t)3)
 
#define SD_CMD_SET_DSR   ((uint8_t)4)
 
#define SD_CMD_SDMMC_SEN_OP_COND   ((uint8_t)5)
 
#define SD_CMD_HS_SWITCH   ((uint8_t)6)
 
#define SD_CMD_SEL_DESEL_CARD   ((uint8_t)7)
 
#define SD_CMD_HS_SEND_EXT_CSD   ((uint8_t)8)
 
#define SD_CMD_SEND_CSD   ((uint8_t)9)
 
#define SD_CMD_SEND_CID   ((uint8_t)10)
 
#define SD_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11)
 
#define SD_CMD_STOP_TRANSMISSION   ((uint8_t)12)
 
#define SD_CMD_SEND_STATUS   ((uint8_t)13)
 
#define SD_CMD_HS_BUSTEST_READ   ((uint8_t)14)
 
#define SD_CMD_GO_INACTIVE_STATE   ((uint8_t)15)
 
#define SD_CMD_SET_BLOCKLEN   ((uint8_t)16)
 
#define SD_CMD_READ_SINGLE_BLOCK   ((uint8_t)17)
 
#define SD_CMD_READ_MULT_BLOCK   ((uint8_t)18)
 
#define SD_CMD_HS_BUSTEST_WRITE   ((uint8_t)19)
 
#define SD_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20)
 
#define SD_CMD_SET_BLOCK_COUNT   ((uint8_t)23)
 
#define SD_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24)
 
#define SD_CMD_WRITE_MULT_BLOCK   ((uint8_t)25)
 
#define SD_CMD_PROG_CID   ((uint8_t)26)
 
#define SD_CMD_PROG_CSD   ((uint8_t)27)
 
#define SD_CMD_SET_WRITE_PROT   ((uint8_t)28)
 
#define SD_CMD_CLR_WRITE_PROT   ((uint8_t)29)
 
#define SD_CMD_SEND_WRITE_PROT   ((uint8_t)30)
 
#define SD_CMD_SD_ERASE_GRP_START   ((uint8_t)32)
 
#define SD_CMD_SD_ERASE_GRP_END   ((uint8_t)33)
 
#define SD_CMD_ERASE_GRP_START   ((uint8_t)35)
 
#define SD_CMD_ERASE_GRP_END   ((uint8_t)36)
 
#define SD_CMD_ERASE   ((uint8_t)38)
 
#define SD_CMD_FAST_IO   ((uint8_t)39)
 
#define SD_CMD_GO_IRQ_STATE   ((uint8_t)40)
 
#define SD_CMD_LOCK_UNLOCK   ((uint8_t)42)
 
#define SD_CMD_APP_CMD   ((uint8_t)55)
 
#define SD_CMD_GEN_CMD   ((uint8_t)56)
 
#define SD_CMD_SDMMC_READ_OCR   ((uint8_t)58)
 
#define SD_CMD_NO_CMD   ((uint8_t)64)
 
#define SD_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6)
 Following commands are SD Card Specific commands. SDMMC_APP_CMD should be sent before sending these commands. More...
 
#define SD_CMD_SD_APP_STATUS   ((uint8_t)13)
 
#define SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22)
 
#define SD_CMD_SD_APP_OP_COND   ((uint8_t)41)
 
#define SD_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42)
 
#define SD_CMD_SD_APP_SEND_SCR   ((uint8_t)51)
 
#define SD_CMD_SDMMC_RW_DIRECT   ((uint8_t)52)
 
#define SD_CMD_SDMMC_RW_EXTENDED   ((uint8_t)53)
 

Detailed Description

Macro Definition Documentation

◆ SD_CMD_ALL_SEND_CID

#define SD_CMD_ALL_SEND_CID   ((uint8_t)2)

Asks any card connected to the host to send the CID numbers on the CMD line.

Definition at line 208 of file SensorTile_sd.h.

◆ SD_CMD_APP_CMD

#define SD_CMD_APP_CMD   ((uint8_t)55)

Indicates to the card that the next command is an application specific command rather than a standard command.

Definition at line 263 of file SensorTile_sd.h.

◆ SD_CMD_APP_SD_SET_BUSWIDTH

#define SD_CMD_APP_SD_SET_BUSWIDTH   ((uint8_t)6)

Following commands are SD Card Specific commands. SDMMC_APP_CMD should be sent before sending these commands.

(ACMD6) Defines the data bus width to be used for data transfer. The allowed data bus widths are given in SCR register.

Definition at line 277 of file SensorTile_sd.h.

◆ SD_CMD_CLR_WRITE_PROT

#define SD_CMD_CLR_WRITE_PROT   ((uint8_t)29)

Clears the write protection bit of the addressed group.

Definition at line 247 of file SensorTile_sd.h.

◆ SD_CMD_ERASE

#define SD_CMD_ERASE   ((uint8_t)38)

Reserved for SD security applications.

Definition at line 257 of file SensorTile_sd.h.

◆ SD_CMD_ERASE_GRP_END

#define SD_CMD_ERASE_GRP_END   ((uint8_t)36)

Sets the address of the last write block of the continuous range to be erased. Reserved for each command system set by switch function command (CMD6).

Definition at line 254 of file SensorTile_sd.h.

◆ SD_CMD_ERASE_GRP_START

#define SD_CMD_ERASE_GRP_START   ((uint8_t)35)

Sets the address of the first write block to be erased. Reserved for each command system set by switch function command (CMD6).

Definition at line 251 of file SensorTile_sd.h.

◆ SD_CMD_FAST_IO

#define SD_CMD_FAST_IO   ((uint8_t)39)

SD card doesn't support it (Reserved).

Definition at line 258 of file SensorTile_sd.h.

◆ SD_CMD_GEN_CMD

#define SD_CMD_GEN_CMD   ((uint8_t)56)

Used either to transfer a data block to the card or to get a data block from the card for general purpose/application specific commands.

Definition at line 266 of file SensorTile_sd.h.

◆ SD_CMD_GO_IDLE_STATE

#define SD_CMD_GO_IDLE_STATE   ((uint8_t)0)

SD Commands Index.

Resets the SD memory card.

Definition at line 206 of file SensorTile_sd.h.

◆ SD_CMD_GO_INACTIVE_STATE

#define SD_CMD_GO_INACTIVE_STATE   ((uint8_t)15)

Sends an addressed card into the inactive state.

Definition at line 225 of file SensorTile_sd.h.

◆ SD_CMD_GO_IRQ_STATE

#define SD_CMD_GO_IRQ_STATE   ((uint8_t)40)

SD card doesn't support it (Reserved).

Definition at line 259 of file SensorTile_sd.h.

◆ SD_CMD_HS_BUSTEST_WRITE

#define SD_CMD_HS_BUSTEST_WRITE   ((uint8_t)19)

64 bytes tuning pattern is sent for SDR50 and SDR104.

Definition at line 237 of file SensorTile_sd.h.

◆ SD_CMD_HS_SEND_EXT_CSD

#define SD_CMD_HS_SEND_EXT_CSD   ((uint8_t)8)

Sends SD Memory Card interface condition, which includes host supply voltage information and asks the card whether card supports voltage.

Definition at line 216 of file SensorTile_sd.h.

◆ SD_CMD_HS_SWITCH

#define SD_CMD_HS_SWITCH   ((uint8_t)6)

Checks switchable function (mode 0) and switch card function (mode 1).

Definition at line 214 of file SensorTile_sd.h.

◆ SD_CMD_LOCK_UNLOCK

#define SD_CMD_LOCK_UNLOCK   ((uint8_t)42)

Sets/resets the password or lock/unlock the card. The size of the data block is set by the SET_BLOCK_LEN command.

Definition at line 260 of file SensorTile_sd.h.

◆ SD_CMD_PROG_CID

#define SD_CMD_PROG_CID   ((uint8_t)26)

Reserved for manufacturers.

Definition at line 244 of file SensorTile_sd.h.

◆ SD_CMD_PROG_CSD

#define SD_CMD_PROG_CSD   ((uint8_t)27)

Programming of the programmable bits of the CSD.

Definition at line 245 of file SensorTile_sd.h.

◆ SD_CMD_READ_DAT_UNTIL_STOP

#define SD_CMD_READ_DAT_UNTIL_STOP   ((uint8_t)11)

SD card doesn't support it.

Definition at line 221 of file SensorTile_sd.h.

◆ SD_CMD_READ_MULT_BLOCK

#define SD_CMD_READ_MULT_BLOCK   ((uint8_t)18)

Continuously transfers data blocks from card to host until interrupted by STOP_TRANSMISSION command.

Definition at line 234 of file SensorTile_sd.h.

◆ SD_CMD_READ_SINGLE_BLOCK

#define SD_CMD_READ_SINGLE_BLOCK   ((uint8_t)17)

Reads single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC.

Definition at line 231 of file SensorTile_sd.h.

◆ SD_CMD_SD_APP_OP_COND

#define SD_CMD_SD_APP_OP_COND   ((uint8_t)41)

(ACMD41) Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.

Definition at line 284 of file SensorTile_sd.h.

◆ SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS

#define SD_CMD_SD_APP_SEND_NUM_WRITE_BLOCKS   ((uint8_t)22)

(ACMD22) Sends the number of the written (without errors) write blocks. Responds with 32bit+CRC data block.

Definition at line 281 of file SensorTile_sd.h.

◆ SD_CMD_SD_APP_SEND_SCR

#define SD_CMD_SD_APP_SEND_SCR   ((uint8_t)51)

Reads the SD Configuration Register (SCR).

Definition at line 288 of file SensorTile_sd.h.

◆ SD_CMD_SD_APP_SET_CLR_CARD_DETECT

#define SD_CMD_SD_APP_SET_CLR_CARD_DETECT   ((uint8_t)42)

(ACMD42) Connects/Disconnects the 50 KOhm pull-up resistor on CD/DAT3 (pin 1) of the card.

Definition at line 287 of file SensorTile_sd.h.

◆ SD_CMD_SD_APP_STATUS

#define SD_CMD_SD_APP_STATUS   ((uint8_t)13)

(ACMD13) Sends the SD status.

Definition at line 280 of file SensorTile_sd.h.

◆ SD_CMD_SD_ERASE_GRP_END

#define SD_CMD_SD_ERASE_GRP_END   ((uint8_t)33)

Sets the address of the last write block of the continuous range to be erased.

Definition at line 250 of file SensorTile_sd.h.

◆ SD_CMD_SD_ERASE_GRP_START

#define SD_CMD_SD_ERASE_GRP_START   ((uint8_t)32)

Sets the address of the first write block to be erased. (For SD card only).

Definition at line 249 of file SensorTile_sd.h.

◆ SD_CMD_SDMMC_READ_OCR

#define SD_CMD_SDMMC_READ_OCR   ((uint8_t)58)

READ_OCR

Definition at line 269 of file SensorTile_sd.h.

◆ SD_CMD_SDMMC_RW_DIRECT

#define SD_CMD_SDMMC_RW_DIRECT   ((uint8_t)52)

For SD I/O card only, reserved for security specification.

Definition at line 289 of file SensorTile_sd.h.

◆ SD_CMD_SDMMC_RW_EXTENDED

#define SD_CMD_SDMMC_RW_EXTENDED   ((uint8_t)53)

For SD I/O card only, reserved for security specification.

Definition at line 290 of file SensorTile_sd.h.

◆ SD_CMD_SDMMC_SEN_OP_COND

#define SD_CMD_SDMMC_SEN_OP_COND   ((uint8_t)5)

Sends host capacity support information (HCS) and asks the accessed card to send its operating condition register (OCR) content in the response on the CMD line.

Definition at line 211 of file SensorTile_sd.h.

◆ SD_CMD_SEL_DESEL_CARD

#define SD_CMD_SEL_DESEL_CARD   ((uint8_t)7)

Selects the card by its own relative address and gets deselected by any other address

Definition at line 215 of file SensorTile_sd.h.

◆ SD_CMD_SEND_CID

#define SD_CMD_SEND_CID   ((uint8_t)10)

Addressed card sends its card identification (CID) on the CMD line.

Definition at line 220 of file SensorTile_sd.h.

◆ SD_CMD_SEND_CSD

#define SD_CMD_SEND_CSD   ((uint8_t)9)

Addressed card sends its card specific data (CSD) on the CMD line.

Definition at line 219 of file SensorTile_sd.h.

◆ SD_CMD_SEND_OP_COND

#define SD_CMD_SEND_OP_COND   ((uint8_t)1)

Sends host capacity support information and activates the card's initialization process.

Definition at line 207 of file SensorTile_sd.h.

◆ SD_CMD_SEND_STATUS

#define SD_CMD_SEND_STATUS   ((uint8_t)13)

Addressed card sends its status register.

Definition at line 223 of file SensorTile_sd.h.

◆ SD_CMD_SEND_WRITE_PROT

#define SD_CMD_SEND_WRITE_PROT   ((uint8_t)30)

Asks the card to send the status of the write protection bits.

Definition at line 248 of file SensorTile_sd.h.

◆ SD_CMD_SET_BLOCK_COUNT

#define SD_CMD_SET_BLOCK_COUNT   ((uint8_t)23)

Specify block count for CMD18 and CMD25.

Definition at line 239 of file SensorTile_sd.h.

◆ SD_CMD_SET_BLOCKLEN

#define SD_CMD_SET_BLOCKLEN   ((uint8_t)16)

Sets the block length (in bytes for SDSC) for all following block commands (read, write, lock). Default block length is fixed to 512 Bytes. Not effective for SDHS and SDXC.

Definition at line 226 of file SensorTile_sd.h.

◆ SD_CMD_SET_DSR

#define SD_CMD_SET_DSR   ((uint8_t)4)

Programs the DSR of all cards.

Definition at line 210 of file SensorTile_sd.h.

◆ SD_CMD_SET_REL_ADDR

#define SD_CMD_SET_REL_ADDR   ((uint8_t)3)

Asks the card to publish a new relative address (RCA).

Definition at line 209 of file SensorTile_sd.h.

◆ SD_CMD_SET_WRITE_PROT

#define SD_CMD_SET_WRITE_PROT   ((uint8_t)28)

Sets the write protection bit of the addressed group.

Definition at line 246 of file SensorTile_sd.h.

◆ SD_CMD_STOP_TRANSMISSION

#define SD_CMD_STOP_TRANSMISSION   ((uint8_t)12)

Forces the card to stop transmission.

Definition at line 222 of file SensorTile_sd.h.

◆ SD_CMD_WRITE_DAT_UNTIL_STOP

#define SD_CMD_WRITE_DAT_UNTIL_STOP   ((uint8_t)20)

Speed class control command.

Definition at line 238 of file SensorTile_sd.h.

◆ SD_CMD_WRITE_MULT_BLOCK

#define SD_CMD_WRITE_MULT_BLOCK   ((uint8_t)25)

Continuously writes blocks of data until a STOP_TRANSMISSION follows.

Definition at line 243 of file SensorTile_sd.h.

◆ SD_CMD_WRITE_SINGLE_BLOCK

#define SD_CMD_WRITE_SINGLE_BLOCK   ((uint8_t)24)

Writes single block of size selected by SET_BLOCKLEN in case of SDSC, and a block of fixed 512 bytes in case of SDHC and SDXC.

Definition at line 240 of file SensorTile_sd.h.

Generated by   doxygen 1.8.13