Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_hal_sflash.h File Reference

List of parameters and defined functions needed to access the Serial Flash interface driver. More...

Macros

#define wiced_hal_sflash_force_erase(addr, len)   sfi_erase(addr, len)
 Force to erase len number of bytes from the serial flash. More...
 
#define wiced_hal_sflash_force_write(addr, len, buffer)   sfi_write(addr, len, buffer)
 Force to write data from memory to a certain location on the serial flash module. More...
 

Functions

void wiced_hal_sflash_init (void)
 Initialize the SPI lines and low-level Serial Flash Interface Driver. More...
 
uint32_t wiced_hal_sflash_read (uint32_t addr, uint32_t len, uint8_t *buf)
 Load data from a certain location on the serial flash module into memory. More...
 
uint32_t wiced_hal_sflash_write (uint32_t addr, uint32_t len, uint8_t *buf)
 Write data from memory to a certain location on the serial flash module. More...
 
void wiced_hal_sflash_erase (uint32_t addr, uint32_t len)
 Erase len number of bytes from the serial flash. More...
 
void wiced_hal_sflash_set_erase_sector_size_256K (wiced_bool_t enable)
 Enable serial flash using 256K sectors. More...
 
void wiced_hal_sflash_set_4_byte_address (wiced_bool_t enable)
 Use 4 byte addressing instead of 3 byte addressing with serial flash. More...
 
wiced_bool_t wiced_hal_sflash_get_erase_sector_size_256K (void)
 Get serial flash 256K sectors setting. More...
 
wiced_bool_t wiced_hal_sflash_get_4_byte_address (void)
 Get serial flash 4 byte address setting. More...
 
void wiced_hal_sflash_set_size (uint32_t sflash_size)
 Set the Serial flash size installed. More...
 

Detailed Description

List of parameters and defined functions needed to access the Serial Flash interface driver.