TI-RTOS Drivers  tidrivers_full_2_20_00_08
Data Structures | Macros | Functions
ExtFlash.h File Reference

Detailed Description

External flash storage abstraction.

============================================================================


#include <stdlib.h>
#include <stdbool.h>
Include dependency graph for ExtFlash.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_tExtFlash_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)
 

Macro Definition Documentation

#define EXT_FLASH_PAGE_SIZE   4096

Function Documentation

bool ExtFlash_open ( void  )

Initialize storage driver.

Returns
True when successful.
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

Returns
True when successful.
bool ExtFlash_erase ( size_t  offset,
size_t  length 
)

Erase storage sectors corresponding to the range.

Returns
True when successful.
bool ExtFlash_write ( size_t  offset,
size_t  length,
const uint8_t *  buf 
)

Write to storage sectors.

Returns
True when successful.
bool ExtFlash_test ( void  )

Test the flash (power on self-test)

Returns
True when successful.
Copyright 2016, Texas Instruments Incorporated