Microchip® Advanced Software Framework

winc1500/host_drv/spi_flash/include/spi_flash.h File Reference

WINC1500 SPI Flash.

Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.

#include "common/include/nm_common.h"
#include "bus_wrapper/include/nm_bus_wrapper.h"
#include "driver/source/nmbus.h"
#include "driver/source/nmasic.h"

Macros

#define FLASH_SECTOR_SZ   (4 * 1024UL)
 

Functions

sint8 spi_flash_enable (uint8 enable)
 
sint8 spi_flash_erase (uint32 u32Offset, uint32 u32Sz)
 Erase a specified portion of SPI Flash.
. More...
 
uint32 spi_flash_get_size (void)
 Get size of SPI Flash. More...
 
sint8 spi_flash_read (uint8 *pu8Buf, uint32 u32Addr, uint32 u32Sz)
 Read a specified portion of data from SPI Flash.
. More...
 
sint8 spi_flash_write (uint8 *pu8Buf, uint32 u32Offset, uint32 u32Sz)
 Write a specified portion of data to SPI Flash.
. More...
 

#define FLASH_SECTOR_SZ   (4 * 1024UL)

Sector Size in Flash Memory