Hey Lonewolf??
This is how I understood what are bit masks....
They are usually a collection of bits, used to represent the states!
(haha... if that is too general, I will give u a bit of an
explanation).
Say you need to pass the information about the state of many devices
to a single unit. You can do that by sending the entire information of
each device to the unit.
However, that is way too much unnecessary info that you would be
passing. So, a simpler and efficient method of handling it would be to
send the state information of all the deviced to the destination. As
usually a state is designated 1 bit, you could send a collection of
such bits to the destination.
This stream of bits is given the name bit-mask (mask in the sense they
are usually used to hide/show info (interrupt masks... etc)
The state of the nth device (say On=1 and off=0) can be found out by
reading the bit mask and getting the nth bit from the bit mask
(assuming you are starting to read from n=1 to n=n).
As always.
(>::Guru Panguji::<)
http://members.lycos.co.uk/gurupanguji
Post by Lonewolf3Can someone please explain, in simple terms [if poss.] what a BIT MASK
is, and what it does etc.?
I've tried the usual sites and got lost in the terminology used, so
any help would be much appreciated.
Thanx in advance,
Lonewolf3.