![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
External flash storage abstraction.
============================================================================
#include <stdlib.h>
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | ExtFlashInfo_t |
Macros | |
#define | EXT_FLASH_PAGE_SIZE 4096 |
Functions | |
bool | ExtFlash_open (void) |
void | ExtFlash_close (void) |
ExtFlashInfo_t * | ExtFlash_info (void) |
bool | ExtFlash_read (size_t offset, size_t length, uint8_t *buf) |
bool | ExtFlash_erase (size_t offset, size_t length) |
bool | ExtFlash_write (size_t offset, size_t length, const uint8_t *buf) |
bool | ExtFlash_test (void) |
#define EXT_FLASH_PAGE_SIZE 4096 |
bool ExtFlash_open | ( | void | ) |
Initialize storage driver.
void ExtFlash_close | ( | void | ) |
Close the storage driver
ExtFlashInfo_t* ExtFlash_info | ( | void | ) |
Get flash information
bool ExtFlash_read | ( | size_t | offset, |
size_t | length, | ||
uint8_t * | buf | ||
) |
Read storage content
bool ExtFlash_erase | ( | size_t | offset, |
size_t | length | ||
) |
Erase storage sectors corresponding to the range.
bool ExtFlash_write | ( | size_t | offset, |
size_t | length, | ||
const uint8_t * | buf | ||
) |
Write to storage sectors.
bool ExtFlash_test | ( | void | ) |
Test the flash (power on self-test)