Non_Volatile_Memory data handling functions.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "techtype.h"
#include "dbgfuncs.h"
#include "stbhwav.h"
#include "stbdpc.h"
#include "stbgc.h"
#include "stbsiflt.h"
#include "stbsitab.h"
#include "stbheap.h"
#include "vtctype.h"
#include "app.h"
#include "ap_cfg.h"
#include "ap_dbacc.h"
#include "ap_ipadd.h"
#include "app_nvm.h"
#include "dba.h"
Go to the source code of this file.
|
#define | DVB_DATA_BLOCK_ID 0x44564220 /* 'DVB ' */ |
|
#define | WIRELESS_ESSID_MAX 33 |
|
#define | WIRELESS_PASSWORD_MAX 64 |
|
#define | DBG(X) |
|
|
void | APP_NvmInitialise (void) |
| Initialises the DVB core's NVM data.
|
|
void | APP_NvmRestoreDefaults (void) |
| Resets the DVB's settings to factory defaults.
|
|
U32BIT | APP_NvmReadDefault (E_NVM_ITEMS nvm_item) |
| Returns the factory default value for the given DVB setting. More...
|
|
U32BIT | APP_NvmRead (E_NVM_ITEMS nvm_item) |
| Returns the current value for the given DVB setting. More...
|
|
U8BIT * | APP_NvmReadString (E_NVM_ITEMS nvm_item) |
| Returns pointer to current string for the given DVB setting. More...
|
|
void | APP_NvmSave (E_NVM_ITEMS nvm_item, U32BIT new_value, BOOLEAN write_to_flash_now) |
| Sets the current value for the given DVB setting. More...
|
|
void | APP_NvmSaveString (E_NVM_ITEMS nvm_item, U8BIT *str_ptr, BOOLEAN write_to_flash_now) |
| Sets the current value for the given DVB setting. More...
|
|
void | APP_NvmSaveAllNow (void) |
| Saves DVB values immediately.
|
|
U32BIT | APP_NvmGetDvbSize (void) |
| Returns the size in bytes the DVB module uses to save its settings. More...
|
|
Non_Volatile_Memory data handling functions.
- Date
- 16/09/2003
Definition in file app_nvm.c.
◆ APP_NvmGetDvbSize()
U32BIT APP_NvmGetDvbSize |
( |
void |
| ) |
|
Returns the size in bytes the DVB module uses to save its settings.
- Returns
- size of DVB settings in bytes
Definition at line 762 of file app_nvm.c.
◆ APP_NvmRead()
U32BIT APP_NvmRead |
( |
E_NVM_ITEMS |
nvm_item | ) |
|
Returns the current value for the given DVB setting.
- Parameters
-
nvm_item | - value to be read |
- Returns
- current value
Definition at line 562 of file app_nvm.c.
◆ APP_NvmReadDefault()
U32BIT APP_NvmReadDefault |
( |
E_NVM_ITEMS |
nvm_item | ) |
|
Returns the factory default value for the given DVB setting.
- Parameters
-
nvm_item | - value to be read |
- Returns
- factory default value
Definition at line 519 of file app_nvm.c.
◆ APP_NvmReadString()
U8BIT* APP_NvmReadString |
( |
E_NVM_ITEMS |
nvm_item | ) |
|
Returns pointer to current string for the given DVB setting.
- Parameters
-
nvm_item | - value to be read |
- Returns
- pointer to string
Definition at line 605 of file app_nvm.c.
◆ APP_NvmSave()
void APP_NvmSave |
( |
E_NVM_ITEMS |
nvm_item, |
|
|
U32BIT |
new_value, |
|
|
BOOLEAN |
write_to_flash_now |
|
) |
| |
Sets the current value for the given DVB setting.
- Parameters
-
nvm_item | - item to be read |
new_value | - value for the item |
write_to_flash_now | - if TRUE then all the current values will be saved. When changing the values of several items, it will be more efficient to only this this TRUE for the last item |
Definition at line 634 of file app_nvm.c.
◆ APP_NvmSaveString()
void APP_NvmSaveString |
( |
E_NVM_ITEMS |
nvm_item, |
|
|
U8BIT * |
str_ptr, |
|
|
BOOLEAN |
write_to_flash_now |
|
) |
| |
Sets the current value for the given DVB setting.
- Parameters
-
nvm_item | - item to be written |
str_ptr | - pointer to string for the item |
write_to_flash_now | - if TRUE then all the current values will be saved. When changing the values of several items, it will be more efficient to only this this TRUE for the last item |
Definition at line 722 of file app_nvm.c.