Repetier-Firmware 0.2
Repetier/SdInfo.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  CID
struct  CSDV1
struct  CSDV2
union  csd_t

Typedefs

typedef struct CID cid_t
typedef struct CSDV1 csd1_t
typedef struct CSDV2 csd2_t

Variables

uint8_t const CMD0 = 0X00
uint8_t const CMD8 = 0X08
uint8_t const CMD9 = 0X09
uint8_t const CMD10 = 0X0A
uint8_t const CMD13 = 0X0D
uint8_t const CMD17 = 0X11
uint8_t const CMD24 = 0X18
uint8_t const CMD25 = 0X19
uint8_t const CMD32 = 0X20
uint8_t const CMD33 = 0X21
uint8_t const CMD38 = 0X26
uint8_t const CMD55 = 0X37
uint8_t const CMD58 = 0X3A
uint8_t const ACMD23 = 0X17
uint8_t const ACMD41 = 0X29
uint8_t const R1_READY_STATE = 0X00
uint8_t const R1_IDLE_STATE = 0X01
uint8_t const R1_ILLEGAL_COMMAND = 0X04
uint8_t const DATA_START_BLOCK = 0XFE
uint8_t const STOP_TRAN_TOKEN = 0XFD
uint8_t const WRITE_MULTIPLE_TOKEN = 0XFC
uint8_t const DATA_RES_MASK = 0X1F
uint8_t const DATA_RES_ACCEPTED = 0X05

Typedef Documentation

typedef struct CID cid_t
typedef struct CSDV1 csd1_t
typedef struct CSDV2 csd2_t

Variable Documentation

uint8_t const ACMD23 = 0X17

SET_WR_BLK_ERASE_COUNT - Set the number of write blocks to be pre-erased before writing

uint8_t const ACMD41 = 0X29

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

uint8_t const CMD0 = 0X00

GO_IDLE_STATE - init card in spi mode if CS low

uint8_t const CMD10 = 0X0A

SEND_CID - read the card identification information (CID register)

uint8_t const CMD13 = 0X0D

SEND_STATUS - read the card status register

uint8_t const CMD17 = 0X11

READ_BLOCK - read a single data block from the card

uint8_t const CMD24 = 0X18

WRITE_BLOCK - write a single data block to the card

uint8_t const CMD25 = 0X19

WRITE_MULTIPLE_BLOCK - write blocks of data until a STOP_TRANSMISSION

uint8_t const CMD32 = 0X20

ERASE_WR_BLK_START - sets the address of the first block to be erased

uint8_t const CMD33 = 0X21

ERASE_WR_BLK_END - sets the address of the last block of the continuous range to be erased

uint8_t const CMD38 = 0X26

ERASE - erase all previously selected blocks

uint8_t const CMD55 = 0X37

APP_CMD - escape for application specific command

uint8_t const CMD58 = 0X3A

READ_OCR - read the OCR register of a card

uint8_t const CMD8 = 0X08

SEND_IF_COND - verify SD Memory Card interface operating condition.

uint8_t const CMD9 = 0X09

SEND_CSD - read the Card Specific Data (CSD register)

uint8_t const DATA_RES_ACCEPTED = 0X05

write data accepted token

uint8_t const DATA_RES_MASK = 0X1F

mask for data response tokens after a write block operation

uint8_t const DATA_START_BLOCK = 0XFE

start data token for read or write single block

uint8_t const R1_IDLE_STATE = 0X01

status for card in the idle state

uint8_t const R1_ILLEGAL_COMMAND = 0X04

status bit for illegal command

uint8_t const R1_READY_STATE = 0X00

status for card in the ready state

uint8_t const STOP_TRAN_TOKEN = 0XFD

stop token for write multiple blocks

uint8_t const WRITE_MULTIPLE_TOKEN = 0XFC

start data token for write multiple blocks

 All Data Structures Files Functions Variables Typedefs Friends Defines