Contiki-NG
Loading...
Searching...
No Matches

Header file for the external SPI flash API. More...

#include "dev/spi.h"
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>

Go to the source code of this file.

Functions

bool ext_flash_open (const spi_device_t *conf)
 Initialize storage driver.
 
bool ext_flash_close (const spi_device_t *conf)
 Close the storage driver.
 
bool ext_flash_read (const spi_device_t *conf, uint32_t offset, uint32_t length, uint8_t *buf)
 Read storage content.
 
bool ext_flash_erase (const spi_device_t *conf, uint32_t offset, uint32_t length)
 Erase storage sectors corresponding to the range.
 
bool ext_flash_write (const spi_device_t *conf, uint32_t offset, uint32_t length, const uint8_t *buf)
 Write to storage sectors.
 
bool ext_flash_init (const spi_device_t *conf)
 Initialise the external flash.
 

Detailed Description

Header file for the external SPI flash API.

Definition in file ext-flash.h.