CC3000HostDriver for device TI CC3000 some changes were made due to mbed compiler and the use of void*
Nvmem_api
Functions | |
signed long | nvmem_read (unsigned long ulFileId, unsigned long ulLength, unsigned long ulOffset, unsigned char *buff) |
nvmem_read | |
signed long | nvmem_write (unsigned long ulFileId, unsigned long ulLength, unsigned long ulEntryOffset, unsigned char *buff) |
nvmem_write | |
unsigned char | nvmem_set_mac_address (unsigned char *mac) |
nvmem_set_mac_address | |
unsigned char | nvmem_get_mac_address (unsigned char *mac) |
nvmem_get_mac_address | |
unsigned char | nvmem_write_patch (unsigned long ulFileId, unsigned long spLength, const unsigned char *spData) |
nvmem_write_patch | |
unsigned char | nvmem_read_sp_version (unsigned char *patchVer) |
nvmem_read_sp_version | |
signed long | nvmem_create_entry (unsigned long ulFileId, unsigned long ulNewLen) |
nvmem_create_entry |
Function Documentation
signed long nvmem_create_entry | ( | unsigned long | ulFileId, |
unsigned long | ulNewLen | ||
) |
nvmem_create_entry
- Parameters:
-
ulFileId nvmem file Id:
NVMEM_AES128_KEY_FILEID: 12 NVMEM_SHARED_MEM_FILEID: 13 and fileIDs 14 and 15ulNewLen entry ulLength
- Returns:
- on success 0, error otherwise.
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.
unsigned char nvmem_get_mac_address | ( | unsigned char * | mac ) |
signed long nvmem_read | ( | unsigned long | ulFileId, |
unsigned long | ulLength, | ||
unsigned long | ulOffset, | ||
unsigned char * | buff | ||
) |
nvmem_read
- Parameters:
-
ulFileId nvmem file id:
NVMEM_NVS_FILEID, NVMEM_NVS_SHADOW_FILEID, NVMEM_WLAN_CONFIG_FILEID, NVMEM_WLAN_CONFIG_SHADOW_FILEID, NVMEM_WLAN_DRIVER_SP_FILEID, NVMEM_WLAN_FW_SP_FILEID, NVMEM_MAC_FILEID, NVMEM_FRONTEND_VARS_FILEID, NVMEM_IP_CONFIG_FILEID, NVMEM_IP_CONFIG_SHADOW_FILEID, NVMEM_BOOTLOADER_SP_FILEID, NVMEM_RM_FILEID, and user files 12-15.ulLength number of bytes to read ulOffset ulOffset in file from where to read buff output buffer pointer
- Returns:
- number of bytes read, otherwise error.
Reads data from the file referred by the ulFileId parameter. Reads data from file ulOffset till length. Err if the file can't be used, is invalid, or if the read is out of bounds.
unsigned char nvmem_read_sp_version | ( | unsigned char * | patchVer ) |
nvmem_read_sp_version
- Parameters:
-
[out] patchVer first number indicates package ID and the second number indicates package build number
- Returns:
- on success 0, error otherwise.
Read patch version. read package version (WiFi FW patch, driver-supplicant-NS patch, bootloader patch)
unsigned char nvmem_set_mac_address | ( | unsigned char * | mac ) |
signed long nvmem_write | ( | unsigned long | ulFileId, |
unsigned long | ulLength, | ||
unsigned long | ulEntryOffset, | ||
unsigned char * | buff | ||
) |
nvmem_write
- Parameters:
-
ulFileId nvmem file id:
NVMEM_WLAN_DRIVER_SP_FILEID, NVMEM_WLAN_FW_SP_FILEID, NVMEM_MAC_FILEID, NVMEM_BOOTLOADER_SP_FILEID, and user files 12-15.ulLength number of bytes to write ulEntryOffset offset in file to start write operation from buff data to write
- Returns:
- on success 0, error otherwise.
Write data to nvmem. writes data to file referred by the ulFileId parameter. Writes data to file ulOffset till ulLength.The file id will be marked invalid till the write is done. The file entry doesn't need to be valid - only allocated.
unsigned char nvmem_write_patch | ( | unsigned long | ulFileId, |
unsigned long | spLength, | ||
const unsigned char * | spData | ||
) |
nvmem_write_patch
- Parameters:
-
ulFileId nvmem file id:
NVMEM_WLAN_DRIVER_SP_FILEID, NVMEM_WLAN_FW_SP_FILEID,spLength number of bytes to write spData SP data to write
- Returns:
- on success 0, error otherwise.
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.
Generated on Tue Jul 12 2022 19:26:44 by 1.7.2