List Info

Thread: Does magic_bit_alias affect all points in that module?




Does magic_bit_alias affect all points in that module?
user name
2006-11-03 13:08:56
Hello,

> > takeshi ikeya:
> > > Is L0 magic_bit?

Jiri:
> > No; it's a manually-declared alias.

takeshi ikeya:
> Any relations between L (4bit,  I think "Chaser
4" means it) and L0, L1..?

I think we need a better example...

point		L	"light"		Chaser	4
point_alias	red	"red light"	L	0
point_alias	green	"green light"	L	1
point_alias	blue	"blue light"	L	2
point_alias	yellow	"yellow light"	L	3

Now:

* L is a four-bit point (owned by Chaser)

* red, green, blue and yellow are manually-declared aliases
for the four bits 
of L

* L.0, L.1, L.2 and L.3 are magic aliases for the four bits
of L

* L is red + 2*green + 4*blue + 8*yellow

* L is L.0 + 2*L.1 + 4*L.2 + 8*L.3

* red is L.0; green is L.1; blue is L.2; yellow is L.3

I hope it makes more sense this way...


Jiri
-- 
Jiri Baum <jiribaum.com.au>                   http://www.baum.com.au/~
jiri

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
MAT-devel mailing list
MAT-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mat-devel

Does magic_bit_alias affect all points in that module?
user name
2006-11-04 00:36:33
I think we need a better example...

point&nbsp; &nbsp; &nbsp; &nbsp;   ; L &nbsp; &nbsp; &nbsp; "light"&nbsp; &nbsp; &nbsp; &nbsp;  Chaser&nbsp; 4
point_alias&nbsp;   ; red &nbsp;   "red light"; &nbsp; &nbsp; L &nbsp; &nbsp; &nbsp; 0
point_alias &nbsp; &nbsp; green ;  "green light"; &nbsp; L &nbsp; &nbsp; &nbsp; 1
Now I see!
I coldn't see the space between 'L' and '0' .
'L' is original point, and '0' is refered bit.

First, define a 8bit point, and make aliases of original point with offset.
By this way, I can make a bit access and also a byte access.
In this case, must a magic_bit_aliases be true ?

 &nbsp;  ikea


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )