wifiiot_partition.h

Overview

Related Modules:

Wifiiot

Description:

Declares the partition interface functions.

These functions are used to initialize partitions and obtain partition tables.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

WifiIotFlashPartitionInfo

Describes an entry in a flash partition table.

WifiIotFlashPartitionTable

Describes a flash partition table.

Macros

Macro Name and Value

Description

WIFI_IOT_FLASH_PARTITON_MAX   12

Indicates the maximum number of partition tables.

Enumerations

Enumeration Name

Description

WifiIotFlashPartitionTableId {   WIFI_IOT_FLASH_PARTITON_BOOT = 0, WIFI_IOT_FLASH_PARTITON_FACTORY_NV, WIFI_IOT_FLASH_PARTITON_NORMAL_NV, WIFI_IOT_FLASH_PARTITON_NORMAL_NV_BACKUP,   WIFI_IOT_FLASH_PARTITON_KERNEL_A, WIFI_IOT_FLASH_PARTITON_KERNEL_B, WIFI_IOT_FLASH_PARTITON_HILINK, WIFI_IOT_FLASH_PARTITON_FILE_SYSTEM,   WIFI_IOT_FLASH_PARTITON_USR_RESERVE, WIFI_IOT_FLASH_PARTITON_HILINK_PKI, WIFI_IOT_FLASH_PARTITON_CRASH_INFO, WIFI_IOT_FLASH_PARTITON_BOOT_BACK }

Indicates the partition table ID.

Functions

Function Name

Description

FlashPartitionInit (void)

unsigned int 

Initializes a flash partition.

GetPartitionTable (void)

WifiIotFlashPartitionTable

Obtains a flash partition table.