| 
Macros | |
| #define | FLASH_ERR_INTERNAL (-7) | 
| #define | FLASH_ERR_LOCAL_ACCESS (-2) | 
| #define | FLASH_ERR_PARAM (-1) | 
| #define | FLASH_ERR_SIZE (-4) | 
| #define | FLASH_ERR_UNINIT (-6) | 
| #define | FLASH_ERR_WINC_ACCESS (-3) | 
| #define | FLASH_ERR_WINC_CONFLICT (-5) | 
| #define | FLASH_SUCCESS 0 | 
| #define | FLASH_UPDATEIMAGE_OPTION_SWITCH NBIT2 | 
| #define | FLASH_UPDATEIMAGE_OPTION_UPDATE NBIT0 | 
| #define | FLASH_UPDATEIMAGE_OPTION_VALIDATE NBIT1 | 
| #define FLASH_ERR_INTERNAL (-7) | 
Return error. The module hit an internal error, such as insufficient heap memory.
Definition at line 82 of file m2m_flash.h.
| #define FLASH_ERR_LOCAL_ACCESS (-2) | 
Return error. An MCU application function of type tpfDataAccessFn returned failure.
Definition at line 69 of file m2m_flash.h.
| #define FLASH_ERR_PARAM (-1) | 
Return error. The parameters provided by the MCU application failed sanity checks.
Definition at line 67 of file m2m_flash.h.
| #define FLASH_ERR_SIZE (-4) | 
Return error. The transfer destination location was too small for the size of data to be transferred.
Definition at line 73 of file m2m_flash.h.
| #define FLASH_ERR_UNINIT (-6) | 
Return error. The MCU application did not call m2m_flash_init during Wi-Fi initialization.
Definition at line 80 of file m2m_flash.h.
| #define FLASH_ERR_WINC_ACCESS (-3) | 
Return error. There was an error while accessing WINC flash, or contents of WINC flash were not as expected.
Definition at line 71 of file m2m_flash.h.
| #define FLASH_ERR_WINC_CONFLICT (-5) | 
Return error. The data provided by the MCU application caused a failure. For example:
Definition at line 78 of file m2m_flash.h.
| #define FLASH_SUCCESS 0 | 
Return success, transfer succeeded.
Definition at line 65 of file m2m_flash.h.
| #define FLASH_UPDATEIMAGE_OPTION_SWITCH NBIT2 | 
Bit 2 of u8Options parameter of m2m_flash_updateimage.
Request to switch the WINC active/inactive partitions. Use this to switch to a new image or to revert to an old one. The switch only succeeds if the image has been marked valid. 
Definition at line 62 of file m2m_flash.h.
| #define FLASH_UPDATEIMAGE_OPTION_UPDATE NBIT0 | 
Bit 0 of u8Options parameter of m2m_flash_updateimage.
Request to write new firmware image to WINC inactive partition. 
Definition at line 54 of file m2m_flash.h.
| #define FLASH_UPDATEIMAGE_OPTION_VALIDATE NBIT1 | 
Bit 1 of u8Options parameter of m2m_flash_updateimage.
Request to mark image in WINC inactive partition as valid. If set along with FLASH_UPDATEIMAGE_OPTION_UPDATE, the image is not marked valid if the writing fails. 
Definition at line 58 of file m2m_flash.h.