The Emergent Properties of Meat
Blog
About me
Bigger projects: emc2 & AXIS
Friends' pages:
Alex
Bill
Chris
Jon
Michael


Tag cloud
Photostream

« Released: EMC 2.3.1 | Newest entries | Twilight hack source code »

This is a userspace hal component which stores values to disk so that it can be preserved from run to run.

Usage

loadusr -W remember v1 v2 f:floatv u:unsignedv

Values are signed integers by default; use f: for floats and u: for unsigned integers.

Pins

remember.<name>.stored-value (OUT)
The remembered value of the pin. If the associated state file (e.g., v1.state or floatv.state) exists when the component is loaded, this is the initial value.
rememer.<name>.new-value (IN)
When a rising edge is seen on store, new-value is copied to stored-value and stored to the state file on disk.
remember.<name>.store (IN)
remember.<name>.stored (OUT)
These lines perform a two-wire handshake much like tool-prepare and tool-prepared to store a new value and save the value to disk. Typically, stored will be asserted within 100ms of store being asserted, but as remember is a userspace component there is no timing guarantee.

Download

Files currently attached to this page:

remember2.4kB

After downloading, 'chmod +x remember' and copy it to a directory on your PATH.

Entry first conceived on 25 May 2009, 21:20 UTC, last modified on 18 January 2010, 16:20 UTC



Powered by the Emergent Properties of Meat. Copyright © 2004-2010 Jeff Epler
[æ]