Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
component:eeprom:zh [2023/10/30 08:52]
hfsr created
component:eeprom:zh [2023/10/30 08:59]
hfsr [Component: EEPROM]
Line 1: Line 1:
-Component: ​EEPROM+组件:EEPROM
 =================== ===================
-This component is provided by the [[item:​eeprom|EEPROM]].+此组件由[[item:​eeprom:zh|EEPROM]]提供。
  
-Component name: `eeprom`  +组件名:`eeprom`。 
-Callbacks:+   
 +回调函数:
  
 - `get():​string`  ​ - `get():​string`  ​
-  ​Get the currently stored byte array.+  ​获取当前存储的字节数组。
 - `set(data:​string)`  ​ - `set(data:​string)`  ​
-  ​Overwrite the currently stored byte array.+  ​覆写当前存储的字符数组。
 - `getLabel():​string`  ​ - `getLabel():​string`  ​
-  ​Get the label of the EEPROM.+  ​获取EEPROM的标签。
 - `setLabel(data:​string)`  ​ - `setLabel(data:​string)`  ​
-  ​Set the label of the EEPROM.+  ​设定EEPROM的标签。
 - `getSize():​number`  ​ - `getSize():​number`  ​
-  ​Gets the maximum storage capacity of the EEPROM.+  ​获取EEPROM的最大存储容量。
 - `getDataSize():​number`  ​ - `getDataSize():​number`  ​
-  ​Gets the maximum data storage capacity of the EEPROM.+  ​获取EEPROM的最大数据存储容量。
 - `getData():​string`  ​ - `getData():​string`  ​
-  ​Gets currently stored byte-array (usually the component address of the main boot device).+  ​获取当前存储的数据字符数组(通常为首选启动设备的组件地址)。
 - `setData(data:​string)`  ​ - `setData(data:​string)`  ​
-  ​Overwrites currently stored byte-array with specified string.+  ​用给定字符串覆写当前的数据字符数组。
 - `getChecksum():​string`  ​ - `getChecksum():​string`  ​
-  ​Gets Checksum of data on EEPROM.+  ​获取EEPROM中数据的校验和。
 - `makeReadonly(checksum:​string):​boolean`  ​ - `makeReadonly(checksum:​string):​boolean`  ​
-  ​Makes the EEPROM ​Read-only if it isn't. This process cannot be reversed. +  ​EEPROM不是只读状态,则将其转换为只读。此操作不可撤销。
  
 目录 目录