Macros | Functions | Variables
m2m_flash.c File Reference

WINC Flash Interface. More...

#include "driver/include/m2m_flash.h"
#include "driver/include/m2m_wifi.h"
#include "driver/source/nmflash.h"
#include "driver/source/m2m_hif.h"
#include "spi_flash/include/spi_flash.h"
#include "nmdrv.h"
#include "ISConstants.h"
Include dependency graph for m2m_flash.c:

Go to the source code of this file.

Macros

#define free   FREE
 
#define malloc   MALLOC
 

Functions

static sint8 app_data_access (tenuFlashDataFnCtl enuCtl, void *pvStr)
 
static sint8 commit_access (tstrFlashAccess *pstrFlashAccess)
 
static sint8 init_access (void)
 
void m2m_flash_get_state (tstrFlashState *pstrState)
 Get information about the module current state and about the most recent access attempt. More...
 
sint8 m2m_flash_init (void)
 Initialize the module. More...
 
sint8 m2m_flash_readimage (uint8 enuImageId, uint16 u16Id, tpfDataAccessFn pfDestFn, uint32 u32DestSize)
 
static sint8 m2m_flash_rootcert_access (tenuFlashAccessItemMode enuMode, uint8 u8ModeOptions, uint8 u8AccessOptions, uint16 u16Id, tpfDataAccessFn pfFn, uint32 u32Size)
 
sint8 m2m_flash_rootcert_add (uint16 u16Id, tpfDataAccessFn pfSourceFn, uint32 u32SourceSize)
 Add an entry to the WINC TLS root certificate store. More...
 
sint8 m2m_flash_rootcert_read (uint16 u16Id, tpfDataAccessFn pfDestFn, uint32 u32DestSize, uint8 *pu8Identifier, uint32 u32IdentifierSz)
 Read an entry from the WINC TLS root certificate store, referenced by entry identifier. More...
 
sint8 m2m_flash_rootcert_readidx (uint16 u16Id, tpfDataAccessFn pfDestFn, uint32 u32DestSize, uint8 u8Index)
 Read an entry from the WINC TLS root certificate store, referenced by entry index. More...
 
sint8 m2m_flash_rootcert_remove (uint16 u16Id, uint8 *pu8Identifier, uint32 u32IdentifierSz)
 Remove an entry from the WINC TLS root certificate store. More...
 
sint8 m2m_flash_updateimage (uint8 u8Options, uint16 u16Id, tpfDataAccessFn pfSourceFn, uint32 u32SourceSize)
 Write/validate/switch a WINC firmware image. More...
 
static sint8 register_app_fn (tpfDataAccessFn pfFn)
 
static sint8 transfer_init (void)
 

Variables

static uint8 gau8ItemIdentifier [20] = {0}
 
static tpfDataAccessFn gpfAppFn = NULL
 

Detailed Description

WINC Flash Interface.

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

Definition in file m2m_flash.c.

Macro Definition Documentation

◆ free

#define free   FREE

Definition at line 58 of file m2m_flash.c.

◆ malloc

#define malloc   MALLOC

Definition at line 57 of file m2m_flash.c.

Function Documentation

◆ app_data_access()

static sint8 app_data_access ( tenuFlashDataFnCtl  enuCtl,
void *  pvStr 
)
static

Definition at line 143 of file m2m_flash.c.

◆ commit_access()

static sint8 commit_access ( tstrFlashAccess pstrFlashAccess)
static

Definition at line 79 of file m2m_flash.c.

◆ init_access()

static sint8 init_access ( void  )
static

Definition at line 69 of file m2m_flash.c.

◆ m2m_flash_readimage()

sint8 m2m_flash_readimage ( uint8  enuImageId,
uint16  u16Id,
tpfDataAccessFn  pfDestFn,
uint32  u32DestSize 
)

Definition at line 174 of file m2m_flash.c.

◆ m2m_flash_rootcert_access()

static sint8 m2m_flash_rootcert_access ( tenuFlashAccessItemMode  enuMode,
uint8  u8ModeOptions,
uint8  u8AccessOptions,
uint16  u16Id,
tpfDataAccessFn  pfFn,
uint32  u32Size 
)
static

Definition at line 297 of file m2m_flash.c.

◆ register_app_fn()

static sint8 register_app_fn ( tpfDataAccessFn  pfFn)
static

Definition at line 135 of file m2m_flash.c.

◆ transfer_init()

static sint8 transfer_init ( void  )
static

Definition at line 60 of file m2m_flash.c.

Variable Documentation

◆ gau8ItemIdentifier

uint8 gau8ItemIdentifier[20] = {0}
static

Definition at line 51 of file m2m_flash.c.

◆ gpfAppFn

tpfDataAccessFn gpfAppFn = NULL
static

Definition at line 50 of file m2m_flash.c.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59