This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
component:eeprom [2015/04/05 07:39] rashy Added missing functions. |
component:eeprom [2017/05/25 02:01] (current) alexbuzzbee Clarify note on `getData()` |
||
---|---|---|---|
Line 14: | Line 14: | ||
- `setLabel(data:string)` | - `setLabel(data:string)` | ||
Set the label of the EEPROM. | Set the label of the EEPROM. | ||
- | - `getSize():string` | + | - `getSize():number` |
Gets the maximum storage capacity of the EEPROM. | Gets the maximum storage capacity of the EEPROM. | ||
+ | - `getDataSize():number` | ||
+ | Gets the maximum data storage capacity of the EEPROM. | ||
- `getData():string` | - `getData():string` | ||
- | Gets currently stored byte-array (component address of main boot device). | + | 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. | Overwrites currently stored byte-array with specified string. | ||
Line 23: | Line 25: | ||
Gets Checksum of data on EEPROM. | Gets Checksum of data on EEPROM. | ||
- `makeReadonly(checksum:string):boolean` | - `makeReadonly(checksum:string):boolean` | ||
- | Makes the EEPROM Read-only if it isn't. This process cannot be reserved. | + | Makes the EEPROM Read-only if it isn't. This process cannot be reversed. |
---- | ---- | ||
{{page>component:contents&noheader&noeditbutton&nouser&nofooter}} | {{page>component:contents&noheader&noeditbutton&nouser&nofooter}} |