Component/EEPROM: Difference between revisions
Jump to navigation
Jump to search
imported>OCDoc Import Imported from legacy OpenComputers documentation at ocdoc.cil.li |
Clean up Markdown artifacts from DokuWiki migration |
||
| Line 3: | Line 3: | ||
This component is provided by the [[Item/EEPROM|EEPROM]]. | This component is provided by the [[Item/EEPROM|EEPROM]]. | ||
Component name: | Component name: <code>eeprom</code>. Callbacks: | ||
* | * <code>get():string</code> | ||
<pre>Get the currently stored byte array. | <pre>Get the currently stored byte array. | ||
</pre> | </pre> | ||
* | * <code>set(data:string)</code> | ||
<pre>Overwrite the currently stored byte array. | <pre>Overwrite the currently stored byte array. | ||
</pre> | </pre> | ||
* | * <code>getLabel():string</code> | ||
<pre>Get the label of the EEPROM. | <pre>Get the label of the EEPROM. | ||
</pre> | </pre> | ||
* | * <code>setLabel(data:string)</code> | ||
<pre>Set the label of the EEPROM. | <pre>Set the label of the EEPROM. | ||
</pre> | </pre> | ||
* | * <code>getSize():number</code> | ||
<pre>Gets the maximum storage capacity of the EEPROM. | <pre>Gets the maximum storage capacity of the EEPROM. | ||
</pre> | </pre> | ||
* | * <code>getDataSize():number</code> | ||
<pre>Gets the maximum data storage capacity of the EEPROM. | <pre>Gets the maximum data storage capacity of the EEPROM. | ||
</pre> | </pre> | ||
* | * <code>getData():string</code> | ||
<pre>Gets currently stored byte-array (usually the component address of the main boot device). | <pre>Gets currently stored byte-array (usually the component address of the main boot device). | ||
</pre> | </pre> | ||
* | * <code>setData(data:string)</code> | ||
<pre>Overwrites currently stored byte-array with specified string. | <pre>Overwrites currently stored byte-array with specified string. | ||
</pre> | </pre> | ||
* | * <code>getChecksum():string</code> | ||
<pre>Gets Checksum of data on EEPROM. | <pre>Gets Checksum of data on EEPROM. | ||
</pre> | </pre> | ||
* | * <code>makeReadonly(checksum:string):boolean</code> | ||
<pre>Makes the EEPROM Read-only if it isn't. This process cannot be reversed. | <pre>Makes the EEPROM Read-only if it isn't. This process cannot be reversed. | ||
| Line 49: | Line 49: | ||
{{:Component/contents}} | {{:Component/contents}} | ||
Latest revision as of 20:27, 24 August 2026
Component: EEPROM
This component is provided by the EEPROM.
Component name: eeprom. Callbacks:
get():string
Get the currently stored byte array.
set(data:string)
Overwrite the currently stored byte array.
getLabel():string
Get the label of the EEPROM.
setLabel(data:string)
Set the label of the EEPROM.
getSize():number
Gets the maximum storage capacity of the EEPROM.
getDataSize():number
Gets the maximum data storage capacity of the EEPROM.
getData():string
Gets currently stored byte-array (usually the component address of the main boot device).
setData(data:string)
Overwrites currently stored byte-array with specified string.
getChecksum():string
Gets Checksum of data on EEPROM.
makeReadonly(checksum:string):boolean
Makes the EEPROM Read-only if it isn't. This process cannot be reversed.
| Components | |
|---|---|
| Core Components | Access Point - Computer - Drone - Drive - EEPROM - Filesystem - GPU - Microcontroller - Modem - Redstone - Robot - Transposer |
| Others | Component Access - Signals |
| Cross-Mod Integration | Applied Energistics |