Component/EEPROM: Difference between revisions

From OpenComputers: Rebooted
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: `eeprom`. Callbacks:
Component name: <code>eeprom</code>. Callbacks:


* `get():string`
* <code>get():string</code>


<pre>Get the currently stored byte array.
<pre>Get the currently stored byte array.
</pre>
</pre>
* `set(data:string)`
* <code>set(data:string)</code>


<pre>Overwrite the currently stored byte array.
<pre>Overwrite the currently stored byte array.
</pre>
</pre>
* `getLabel():string`
* <code>getLabel():string</code>


<pre>Get the label of the EEPROM.
<pre>Get the label of the EEPROM.
</pre>
</pre>
* `setLabel(data:string)`
* <code>setLabel(data:string)</code>


<pre>Set the label of the EEPROM.
<pre>Set the label of the EEPROM.
</pre>
</pre>
* `getSize():number`
* <code>getSize():number</code>


<pre>Gets the maximum storage capacity of the EEPROM.
<pre>Gets the maximum storage capacity of the EEPROM.
</pre>
</pre>
* `getDataSize():number`
* <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>
* `getData():string`
* <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>
* `setData(data:string)`
* <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>
* `getChecksum():string`
* <code>getChecksum():string</code>


<pre>Gets Checksum of data on EEPROM.
<pre>Gets Checksum of data on EEPROM.
</pre>
</pre>
* `makeReadonly(checksum:string):boolean`
* <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