DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
Typedefs | Enumerations | Functions
app_nvm.h File Reference

Header file for NVM data handling functions. More...

#include "techtype.h"
#include "stbhwc.h"

Go to the source code of this file.

Typedefs

typedef enum e_nvm_items E_NVM_ITEMS
 

Enumerations

enum  e_nvm_items {
  FIRST_BOOT_NVM, STANDBY_POWERSAVE_NVM, VOLUME_NVM, ASPECT_MODE_NVM,
  SCART_INPUT_TYPE_NVM, PRIMARY_AUDIO_LANG_NVM, SECONDARY_AUDIO_LANG_NVM, AUDIO_TYPE_NVM,
  STANDBY_STATE_NVM, SEARCHING_STATE_NVM, PARENTAL_LOCK_NVM, ICS_PARENTAL_LOCK_NVM,
  SYSTEM_PIN_NO_NVM, AERIAL_POWER_ON_NVM, COUNTRY_CODE_NVM, REGION_ID_NVM,
  RF_CHANNEL_NUM_NVM, ASPECT_RATIO_NVM, TV_SCART_TYPE_NVM, WAKEUP_VOLUME_NVM,
  HDMI_RESOLUTION_NVM, NET_IF_TYPE_NVM, IP_MODE_NVM, IP_ADDRESS_NVM,
  SUBNET_MASK_NVM, GATEWAY_IP_NVM, DNS_SERVER_IP_NVM, ESSID_NVM,
  ESSID_PASSWORD_NVM, AD_VOLUME_NVM, SPDIF_OUTPUT_NVM, LIP_SYNC_ADJUSTMENT_NVM,
  TARGET_REGION_DEPTH_NVM, TARGET_REGION_COUNTRY_NVM, TARGET_REGION_PRIMARY_NVM, TARGET_REGION_SECONDARY_NVM,
  TARGET_REGION_TERTIARY_NVM, OTA_TYPE_NVM, OTA_LAST_UPDATE_SRCH_NVM, LAST_CHAN_SRCH_NVM,
  LAST_EIT_UPDATE_NVM, WATCH_HD_PROGRAMMES_NVM, RECORD_HD_PROGRAMMES_NVM, TIMESHIFT_BUFFER_SIZE_NVM,
  SUBTITLE_TYPE_NVM, BACKGROUND_SEARCH_START_NVM, BACKGROUND_SEARCH_END_NVM, SERVICE_SEARCH_ENABLED_NVM,
  SSU_SEARCH_ENABLED_NVM, LIVE_SERVICE_LCN_NVM, PRIMARY_TEXT_LANG_NVM, SECONDARY_TEXT_LANG_NVM,
  HDMI_AUDIO_OUTPUT_NVM, EIT_SCHED_LIMIT_NVM, PREFER_HD_AUDIO_NVM, NUM_ITEMS_NVM
}
 
enum  E_STANDBY_STATE {
  STDBY_POWER_ON = 0, STDBY_STANDBY, STDBY_WAKE_FOR_SEARCH, STDBY_UPDATE_SEARCH,
  STDBY_WAKE_FOR_RECORDING, STDBY_RECORDING
}
 
enum  E_OTA_TYPE { OTA_TYPE_AUTO = 0, OTA_TYPE_MANUAL }
 
enum  E_VIEW_REC_PREF { VIEW_REC_NEVER = 0, VIEW_REC_ASK, VIEW_REC_ALWAYS }
 
enum  E_SUBTITLE_TYPE { SUBTITLE_NORMAL = 0, SUBTITLE_HARD_OF_HEARING }
 
enum  E_PARENTAL_LOCK { PARENTAL_LOCK_OFF = 0, PARENTAL_LOCK_ON = 0xff }
 
enum  E_NET_IF_TYPE { NET_IF_NONE, NET_IF_WIRED, NET_IF_WIRELESS }
 

Functions

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...
 
void APP_NvmInitialise (void)
 Initialises the DVB core's NVM data.
 

Detailed Description

Header file for NVM data handling functions.

Date
16/09/2003

Function Documentation

U32BIT APP_NvmGetDvbSize ( void  )

Returns the size in bytes the DVB module uses to save its settings.

Returns
size of DVB settings in bytes
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
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
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
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
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