flash_sdcard.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
bool flash_sdcard_setup(void);
uint64_t flash_sdcard_size(void);
uint32_t flash_sdcard_erase_size(void);
bool flash_sdcard_read_data(uint32_t block, uint8_t* data);
bool flash_sdcard_write_data(uint32_t block, uint8_t* data);
flash_sdcard_erase_size
uint32_t flash_sdcard_erase_size(void)
get size of a erase block
Definition: flash_sdcard.c:562
flash_sdcard_size
uint64_t flash_sdcard_size(void)
get size of SD card flash memory
Definition: flash_sdcard.c:557
flash_sdcard_setup
bool flash_sdcard_setup(void)
setup communication with SD card
Definition: flash_sdcard.c:381
flash_sdcard_read_data
bool flash_sdcard_read_data(uint32_t block, uint8_t *data)
read data on flash of SD card
Definition: flash_sdcard.c:567
flash_sdcard_write_data
bool flash_sdcard_write_data(uint32_t block, uint8_t *data)
write data on flash of SD card
Definition: flash_sdcard.c:582