Nope...that is ANDing the read-value with a single-bit mask,
so the result will be 0 as long as the read-value is 0.
The left bitshift thing makes it less than obvious, but in this
case it evaluates to (1<<3) == 0x08, so the line boils down to:
while( (value & 0x08) == 0 ) ;
MS
ps...I had to go look up the bitshift operator just
to make sure...
jose m wrote:
Hello,
this code line comes rigth after you send the
cal_start to the cc1000. It should wait until
cal_complete = 1. However, as I understand it it waits
for cal_complete = 0. Hence, it does not wait for any
calibration. am I interpreting it wrong?
while (((call HPLChipcon.read(CC1K_CAL)) &
(1<<CC1K_CAL_COMPLETE)) == 0);
Thanks in advance,
José
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help