Hi,

 What does the "&" operator stand for? Eg:

uint16_t x;
//let x = some value
if (x & 0x0001) { /* do something */}
else if (x & 0x0004) {/* do something else */}

I have tried to find this syntax on the Net, but I'm really unable to find one that explains what it means. In C, I understand that it has to do with pointers, but the syntax is "&pointer" (no spacing), hence, I'm really clueless what this does. I'm trying to obtain sensor readings and linking the output of the value of the temperature readings to the Leds.
 Thanks in advance.

Regards,
Azhar


_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to