# wifiiot\_flash.h ## **Overview** **Related Modules:** [Wifiiot](Wifiiot.md) **Description:** Declares the flash interface functions. These functions are used to initialize or deinitialize a flash device, and read data from or write data to a flash memory. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Functions

Function Name

Description

FlashRead (const unsigned int flashOffset, const unsigned int size, unsigned char *ramData)

unsigned int 

Reads data from a flash memory address.

FlashWrite (const unsigned int flashOffset, unsigned int size, const unsigned char *ramData, unsigned char doErase)

unsigned int 

Writes data to a flash memory address.

FlashErase (const unsigned int flashOffset, const unsigned int size)

unsigned int 

Erases data in a specified flash memory address.

FlashInit (void)

unsigned int 

Initializes the flash device.

FlashDeinit (void)

unsigned int 

Deinitializes the flash device.