CuVoodoo STM32F1 firmware template
|
library to communicate with an SD card flash memory using the SPI mode (API) More...
Go to the source code of this file.
Functions | |
bool | flash_sdcard_setup (void) |
setup communication with SD card More... | |
uint64_t | flash_sdcard_size (void) |
get size of SD card flash memory More... | |
uint32_t | flash_sdcard_erase_size (void) |
get size of a erase block More... | |
bool | flash_sdcard_read_data (uint32_t block, uint8_t *data) |
read data on flash of SD card More... | |
bool | flash_sdcard_write_data (uint32_t block, uint8_t *data) |
write data on flash of SD card More... | |
library to communicate with an SD card flash memory using the SPI mode (API)
Definition in file flash_sdcard.h.
uint32_t flash_sdcard_erase_size | ( | void | ) |
get size of a erase block
Definition at line 562 of file flash_sdcard.c.
bool flash_sdcard_read_data | ( | uint32_t | block, |
uint8_t * | data | ||
) |
read data on flash of SD card
[in] | block | address of data to read (in block in 512 bytes unit) |
[out] | data | data block to read (with a size of 512 bytes) |
Definition at line 567 of file flash_sdcard.c.
bool flash_sdcard_setup | ( | void | ) |
setup communication with SD card
Definition at line 381 of file flash_sdcard.c.
uint64_t flash_sdcard_size | ( | void | ) |
get size of SD card flash memory
Definition at line 557 of file flash_sdcard.c.
bool flash_sdcard_write_data | ( | uint32_t | block, |
uint8_t * | data | ||
) |
write data on flash of SD card
[in] | block | address of data to write (in block in 512 bytes unit) |
[in] | data | data block to write (with a size of 512 bytes) |
Definition at line 582 of file flash_sdcard.c.