Hi Pascal,

On 07/07/2011 05:37 PM, Pascal Baerten wrote:

> you may want to look at the 'writebyte' I've utilized to test some
> features sometime ago.
> the code is now commented out but still present.
>
> The principle is to consider the writebyte property as a word value (two
> bytes)
> the hi-byte is parsed as the offset and the lo-byte is parsed as the
> value to write.
>
> for example
> echo 513 >/owfs/xx.nnnnnnnnn/writebyte
> will write the value 1  (513 |0Xff)
> to offset 2  (513>>8)
>
> for more advanced use of a generic memory, you may create a byte array
> of 256 elements wich will be individually addressable in both read and
> write function. (see aggregate examples)

Thanks for the info. The writebyte seems to be a bit limited in that it 
only allows to write 1 byte at a time, but thanks for the idea.

I'll take a look at aggregate examples; I see that there are some in 
ow_bae.c.

Cheers!

Eloy Paris.-

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to