The following functions, variables, structures, and macros are public, but are intended only to be accessed by the library itself. Applications should generally not call these functions or modify these variables.
Enumerations
Functions
|
Name |
Description |
|
Initializes the I/O lines connected to the card | |
|
Determines whether an SD card is present | |
|
Initializes the SD card. | |
|
Determines the current capacity of the SD card | |
|
Reads a byte of data from the SD card. | |
|
Determines the current sector size on the SD card | |
|
Writes a sector of data to an SD card. | |
|
Reads a sector of data from an SD card. | |
|
Disables the SD card | |
|
Indicates whether the card is write-protected. |
Macros
|
Name |
Description |
|
This macro defines the command code to begin application specific command inputs | |
|
This macro defines the command code to disable CRC checking | |
|
This macro defines the command code to erase all previously selected blocks | |
|
This macro defines the command code to reset the SD card | |
|
This macro defines the command code to read multiple blocks from the card | |
|
This macro defines the command code to get the OCR register information from the card | |
|
This macro defines the command code to read one block from the card | |
|
This macro defines the command code to get the Card Information | |
|
This macro defines the command code to get the Card Specific Data | |
|
This macro defines the command code to initialize the SD card | |
|
This macro defines the command code to get the card status information | |
|
This macro defines the command code to set the block length of the card | |
|
This macro defines the command code to stop transmission during a multi-block read | |
|
This macro defines the command code to set the address of the end of an erase operation | |
|
This macro defines the command code to set the address of the start of an erase operation | |
|
This macro defines the command code to write multiple blocks to the card | |
|
This macro defines the command code to write one block to the card | |
|
This macro represents an SD card data accepted token | |
|
This macro represents an SD card start token | |
|
An approximation of the number of cycles per delay loop of overhead | |
|
A delay prescaler | |
|
This macro indicates the SPI enable bit for 16-bit PICs | |
|
An approximate calculation of how many times to loop to delay 1 ms in the Delayms function | |
|
This macro represents a bad SD card response byte | |
|
This macro represents a floating SPI bus condition | |
|
This macro indicates that the SD card expects to transmit or receive more data | |
|
A macro to send clock cycles to dummy-read the CRC | |
|
A macro to send 8 clock cycles for SD timing requirements | |
|
A macro to send clock cycles to dummy-write the CRC | |
|
This macro indicates that the SD card does not expect to transmit or receive more data | |
|
This macro is used to initialize a 16-bit PIC SPI module primary prescaler | |
|
This macro is used to initialize a 16-bit PIC SPI module secondary prescaler | |
|
This macro is used to initialize a 16-bit PIC SPI module | |
|
This macro is used to initialize a PIC18 SPI module with a 16x prescale divider | |
|
This macro is used to initialize a 16-bit PIC SPI module |
Structures
|
Name |
Description |
|
SD card command data structure |
Unions
|
Name |
Description |
|
A description of the card information register | |
|
An SD command packet | |
|
A description of the card specific data register | |
|
The format of an R1 type response | |
|
The format of an R2 type response | |
|
A union of responses from an SD card |