38 #include "cc3000_common.h"
65 #define NVMEM_NVS_FILEID (0)
66 #define NVMEM_NVS_SHADOW_FILEID (1)
67 #define NVMEM_WLAN_CONFIG_FILEID (2)
68 #define NVMEM_WLAN_CONFIG_SHADOW_FILEID (3)
69 #define NVMEM_WLAN_DRIVER_SP_FILEID (4)
70 #define NVMEM_WLAN_FW_SP_FILEID (5)
71 #define NVMEM_MAC_FILEID (6)
72 #define NVMEM_FRONTEND_VARS_FILEID (7)
73 #define NVMEM_IP_CONFIG_FILEID (8)
74 #define NVMEM_IP_CONFIG_SHADOW_FILEID (9)
75 #define NVMEM_BOOTLOADER_SP_FILEID (10)
76 #define NVMEM_RM_FILEID (11)
79 #define NVMEM_AES128_KEY_FILEID (12)
80 #define NVMEM_SHARED_MEM_FILEID (13)
83 #define NVMEM_MAX_ENTRY (16)
110 extern INT32
nvmem_read(UINT32 file_id, UINT32 length, UINT32 offset, UINT8 *buff);
134 extern INT32
nvmem_write(UINT32 ulFileId, UINT32 ulLength, UINT32 ulEntryOffset, UINT8 *buff);
184 extern UINT8
nvmem_write_patch(UINT32 ulFileId, UINT32 spLength,
const UINT8 *spData);
200 #ifndef CC3000_TINY_DRIVER
246 #endif // __cplusplus
248 #endif // __NVRAM_H__
INT32 nvmem_write(UINT32 ulFileId, UINT32 ulLength, UINT32 ulEntryOffset, UINT8 *buff)
Write data to nvmem. writes data to file referred by the ulFileId parameter. Writes data to file ulOf...
Definition: nvmem.c:135
UINT8 nvmem_set_mac_address(UINT8 *mac)
Write MAC address to EEPROM. mac address as appears over the air (OUI first)
Definition: nvmem.c:178
UINT8 nvmem_write_patch(UINT32 ulFileId, UINT32 spLength, const UINT8 *spData)
program a patch to a specific file ID. The SP data is assumed to be organized in 2-dimensional. Each line is SP_PORTION_SIZE bytes long. Actual programming is applied in SP_PORTION_SIZE bytes portions.
Definition: nvmem.c:219
UINT8 nvmem_read_sp_version(UINT8 *patchVer)
Read patch version. read package version (WiFi FW patch, driver-supplicant-NS patch, bootloader patch)
Definition: nvmem.c:263
INT32 nvmem_create_entry(UINT32 ulFileId, UINT32 ulNewLen)
Create new file entry and allocate space on the NVMEM. Applies only to user files. Modify the size of file. If the entry is unallocated - allocate it to size ulNewLen (marked invalid). If it is allocated then deallocate it first. To just mark the file as invalid without resizing - set ulNewLen=0.
Definition: nvmem.c:307
UINT8 nvmem_get_mac_address(UINT8 *mac)
Read MAC address from EEPROM. mac address as appears over the air (OUI first)
Definition: nvmem.c:196
INT32 nvmem_read(UINT32 ulFileId, UINT32 ulLength, UINT32 ulOffset, UINT8 *buff)
Reads data from the file referred by the ulFileId parameter. Reads data from file ulOffset till lengt...
Definition: nvmem.c:84