|
signed long | nvmem_read (unsigned long file_id, unsigned long length, unsigned long offset, unsigned char *buff) |
| 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.
|
|
signed long | nvmem_write (unsigned long ulFileId, unsigned long ulLength, unsigned long ulEntryOffset, unsigned char *buff) |
| 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_set_mac_address (unsigned char *mac) |
| Write MAC address to EEPROM. mac address as appears over the air (OUI first)
|
|
unsigned char | nvmem_get_mac_address (unsigned char *mac) |
| Read MAC address from EEPROM. mac address as appears over the air (OUI first)
|
|
unsigned char | nvmem_write_patch (unsigned long ulFileId, unsigned long spLength, const unsigned char *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.
|
|
unsigned char | nvmem_read_sp_version (unsigned char *patchVer) |
| Read patch version. read package version (WiFi FW patch, driver-supplicant-NS patch, bootloader patch)
|
|
signed long | nvmem_create_entry (unsigned long file_id, unsigned long newlen) |
| 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.
|
|