restore factory属性的enable和disable

本文介绍了在不同组件中如何设置restorefactory属性,包括LID、cache和文件夹等部分。通过具体示例展示了如何启用或禁用该属性。
LID、cache及文件夹都是在定义的时候就设置了restore factory属性属性的,下面给出了这三部分定义时设置属性的
位置: 
LID部分: 
在logical_data_item_table_comm_app数组中的某一项 
 ,{ 
 NVRAM_EF_EBOOK_SETTINGS_LID, 
 NVRAM_EF_EBOOK_SETTING_SIZE, 
 NVRAM_EF_EBOOK_SETTING_TOTAL, 
 NVRAM_NORMAL(NVRAM_EF_EBOOK_DEFAULT_VALUE), 
 NVRAM_ATTR_ZIP_DEFAULT | NVRAM_ATTR_FACTORY_RESET, /*去掉NVRAM_ATTR_FACTORY_RESET属性则可
disable*/ 
 NVRAM_CATEGORY_USER, 
 "MP30", 
 VER(NVRAM_EF_EBOOK_SETTINGS_LID), 
 "Ebook Settings", 
 NVRAM_APP_RESERVED 
 } 
 
cache部分: 
只用一个byte cache举例,其它类似 
 BYTE_ENTRY(NVRAM_SETTING_AUTOKEYPADLOCK_TIME, 
 NVRAM_APP_PHNSET, 
 NVRAM_CACHE_ID_RESERVED, 
 KAL_TRUE, /*此处为设置restore factory的地方,设为false即可disable*/ 
 "Auto KeyPad Lock Timer", 
 0X00),
 
文件夹部分: 
const nvram_clean_folder_entry nvram_clean_folder_list[] = { #ifdef __MMI_IMPS__ 
/* under construction !*/ 
#endif 
#if defined (__MMI_FTS_SUPPORT__) || defined (__MMI_FTC_SUPPORT__) 
 {NVRAM_CLEAN_FOLDER_FACTORY, FTP_FOLDER}, /*NVRAM_CLEAN_FOLDER_FACTORY即为restore factory属性,设为
NVRAM_CLEAN_FOLDER_NONE即可disable*/ 
#endif 
#ifdef __EMAIL__ 
 {NVRAM_CLEAN_FOLDER_FACTORY, EMAIL_FOLDER}, ............
Read Product Identity Code ! ↵ None The sensor will respond by sending an exclamation mark “!” followed by a unique “sensor identity code”, comprising the product code, the product variant number and the serial number of the form; XXXXXYYYZZZZZZ Where XXXXX is the product code, YYY is the product variant number and ZZZZZZ is the numeric serial number, incrementing from 000001 Read Firmware Revision !F↵ None Displays the firmware revision number. This should be quoted in any technical queries to Hummingbird Read status of pressure compensation !P↵ None Displays 0 if pressure compensation is disabled or 1 if it is enabled Enable or Disable Pressure Compensation !Pn↵ Where n is, 0 to disable pressure compensation 1 to enable pressure compensation Enables or disables pressure compensation being applied to the reported oxygen measurement Enable or Disable CRC field in Digital Output !Cn↵ Where n is, 0 to disable CRC field. 1 to enable CRC field. Enables or disables output of a CRC field in the digital output. CRC uses the 16 bit XMODEM CRC model with, Polynomial=x16 + x12 + x5 + 1 (0x11021) and Seed value=0x0 Page 29 of 44 01121001A _1 Paracube™ Modus – Instruction Manual CORPORATE DOCUMENT Low Calibration !Ln.n↵ Where n is a number in the range 0 to 100 indicating the oxygen content of the calibration gas - A decimal point may be used where necessary Invoke a low calibration. This variant of the calibration command can be used to specify which of the two sets of calibration data is updated. This command updates the low cal. point High Calibration !Hn.n↵ Where n is a number in the range 0 to 100 indicating the oxygen content of the calibration gas - a decimal point may be used where necessary Invoke a high calibration. This variant of the calibration command can be used to specify which of the two sets of calibration data is updated. This command always updates the high cal. point Single Point Offset Correction (SPOC) !Sn.n↵ Where n is a number in the range 0 to 100 indicating the oxygen content of the calibration gas - a decimal point may be used where necessary A single point offset correction adjusts for drift of the sensor with time and can be used where a two-point calibration is not possible under normal working conditions Read Sensor Identity Code and Configuration Data relevant to Calibration !D↵ None In the unlikely event that a calibration procedure fails this command will produce the sensor’s calibration data (both latest working and factory back up). This data can be forwarded to Hummingbird technical support should assistance be required Restore backed up calibration !R↵ None In the unlikely event that during a calibration or a SPOC the procedure goes wrong the sensor can be recovered to its original factory calibration by sending the restore factory calibration backup command Table
最新发布
03-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值