Macros | Functions | Variables
nmflash.c File Reference

WINC Flash Interface. More...

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

Go to the source code of this file.

Macros

#define free   FREE
 
#define malloc   MALLOC
 

Functions

static sint8 access_control_sector (tenuCSOp enuOp, uint32 *param)
 
static uint8 crc7 (uint8 crc, const uint8 *buff, uint16 len)
 
sint8 image_get_target (uint8 *pu8Target)
 
uint8 is_internal_info (tpfDataAccessFn pfFn)
 
static sint8 local_access_ptr (tenuFlashDataFnCtl enuCtl, void *pvStr)
 
sint8 prepare_backup (uint32 u32Target)
 
static sint8 read_control_sector (tstrOtaControlSec *pstrControlSec, uint32 u32Offset)
 
sint8 recover_backup (void)
 
sint8 rootcert_access (tenuFlashAccessItemMode enuMode, tstrRootCertEntryHeader *pstrReferenceHdr, uint16 *pu16EntrySize, uint8 *pu8Buff, uint32 *pu32Offset)
 
sint8 rootcert_get_size (tstrRootCertEntryHeader *pstrHdr, uint16 *pu16Size)
 
static sint8 set_changed_flag (tstrFlashAccessPersistent *pstrPersistentInfo)
 
void set_internal_info (tpfDataAccessFn *ppfFn, uint32 u32LocationId)
 
void set_internal_info_ptr (tpfDataAccessFn *ppfFn, uint8 *pu8Ptr)
 
sint8 transfer_run (tstrFlashAccess *pstrFlashAccess)
 
static sint8 update_control_sector (tstrOtaControlSec *pstrControlSec)
 
static sint8 winc_flash_access (tenuFlashDataFnCtl enuCtl, void *pvStr)
 
static sint8 winc_flash_compare (uint8 *pu8Buf, uint32 u32Offset, uint32 u32Size)
 
sint8 winc_flash_write_verify (uint8 *pu8Buf, uint32 u32Offset, uint32 u32Size)
 

Variables

static uint8gpu8Location = NULL
 
uint16 gu16LastAccessId = 0
 
static uint32 gu32LocationId = MEM_ID_NONE
 
uint8 gu8Changed = 0
 
uint8 gu8Init = 0
 
uint8 gu8Reset = 0
 
uint8 gu8Success = 0
 

Detailed Description

WINC Flash Interface.

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

Definition in file nmflash.c.

Macro Definition Documentation

◆ free

#define free   FREE

Definition at line 49 of file nmflash.c.

◆ malloc

#define malloc   MALLOC

Definition at line 48 of file nmflash.c.

Function Documentation

◆ access_control_sector()

static sint8 access_control_sector ( tenuCSOp  enuOp,
uint32 param 
)
static

Definition at line 167 of file nmflash.c.

◆ crc7()

static uint8 crc7 ( uint8  crc,
const uint8 buff,
uint16  len 
)
static

Definition at line 117 of file nmflash.c.

◆ image_get_target()

sint8 image_get_target ( uint8 pu8Target)

Definition at line 515 of file nmflash.c.

◆ is_internal_info()

uint8 is_internal_info ( tpfDataAccessFn  pfFn)

Definition at line 436 of file nmflash.c.

◆ local_access_ptr()

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

Definition at line 253 of file nmflash.c.

◆ prepare_backup()

sint8 prepare_backup ( uint32  u32Target)

Definition at line 485 of file nmflash.c.

◆ read_control_sector()

static sint8 read_control_sector ( tstrOtaControlSec pstrControlSec,
uint32  u32Offset 
)
static

Definition at line 132 of file nmflash.c.

◆ recover_backup()

sint8 recover_backup ( void  )

Definition at line 442 of file nmflash.c.

◆ rootcert_access()

sint8 rootcert_access ( tenuFlashAccessItemMode  enuMode,
tstrRootCertEntryHeader pstrReferenceHdr,
uint16 pu16EntrySize,
uint8 pu8Buff,
uint32 pu32Offset 
)

Definition at line 570 of file nmflash.c.

◆ rootcert_get_size()

sint8 rootcert_get_size ( tstrRootCertEntryHeader pstrHdr,
uint16 pu16Size 
)

Definition at line 535 of file nmflash.c.

◆ set_changed_flag()

static sint8 set_changed_flag ( tstrFlashAccessPersistent pstrPersistentInfo)
static

Definition at line 103 of file nmflash.c.

◆ set_internal_info()

void set_internal_info ( tpfDataAccessFn ppfFn,
uint32  u32LocationId 
)

Definition at line 430 of file nmflash.c.

◆ set_internal_info_ptr()

void set_internal_info_ptr ( tpfDataAccessFn ppfFn,
uint8 pu8Ptr 
)

Definition at line 424 of file nmflash.c.

◆ transfer_run()

sint8 transfer_run ( tstrFlashAccess pstrFlashAccess)

Definition at line 679 of file nmflash.c.

◆ update_control_sector()

static sint8 update_control_sector ( tstrOtaControlSec pstrControlSec)
static

Definition at line 144 of file nmflash.c.

◆ winc_flash_access()

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

Definition at line 290 of file nmflash.c.

◆ winc_flash_compare()

static sint8 winc_flash_compare ( uint8 pu8Buf,
uint32  u32Offset,
uint32  u32Size 
)
static

Definition at line 68 of file nmflash.c.

◆ winc_flash_write_verify()

sint8 winc_flash_write_verify ( uint8 pu8Buf,
uint32  u32Offset,
uint32  u32Size 
)

Definition at line 90 of file nmflash.c.

Variable Documentation

◆ gpu8Location

uint8* gpu8Location = NULL
static

Definition at line 55 of file nmflash.c.

◆ gu16LastAccessId

uint16 gu16LastAccessId = 0

Definition at line 57 of file nmflash.c.

◆ gu32LocationId

uint32 gu32LocationId = MEM_ID_NONE
static

Definition at line 54 of file nmflash.c.

◆ gu8Changed

uint8 gu8Changed = 0

Definition at line 59 of file nmflash.c.

◆ gu8Init

uint8 gu8Init = 0

Definition at line 60 of file nmflash.c.

◆ gu8Reset

uint8 gu8Reset = 0

Definition at line 61 of file nmflash.c.

◆ gu8Success

uint8 gu8Success = 0

Definition at line 58 of file nmflash.c.



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