|
orcus
|
SD card. More...
#include <stdint.h>Functions | |
| int | sdInit () |
| Initialise SD card. More... | |
| bool | sdIsInserted () |
| Check if SD card is inserted. More... | |
| int | sdReadBlocks (int startBlock, int numberOfBlocks, uint8_t *dest) |
| Read blocks from SD card. More... | |
| int | sdWriteBlocks (int startBlock, int numberOfBlocks, uint8_t *src) |
| Write blocks to SD card. More... | |
| int sdInit | ( | ) |
Initialise SD card.
| bool sdIsInserted | ( | ) |
Check if an SD card is physically inserted into the slot (reads the state of the mechanical switch).
| int sdReadBlocks | ( | int | startBlock, |
| int | numberOfBlocks, | ||
| uint8_t * | dest | ||
| ) |
Read blocks (512B) from SD card.
| startBlock | Block to start reading from (i.e. address / 512) |
| numberOfBlocks | Number of 512B blocks to read |
| dest | Pointer to memory location to store data |
| int sdWriteBlocks | ( | int | startBlock, |
| int | numberOfBlocks, | ||
| uint8_t * | src | ||
| ) |
Write blocks (512B) to SD card.
| startBlock | Block to start reading writing at (i.e. address / 512) |
| numberOfBlocks | Number of 512B blocks to write |
| dest | Pointer to memory location of data to write |