I'm sure of what exactly you are asking about. 1 << 3 is C for 1 shifted to the left 3 bits or 8.
cc2420_status_enums give readable names to all the bit positions of the cc2420 status byte. In particular, the value 8 (bit 3) denotes that when set the cc2420 is in TX mode (tx is active). See Table 5 in the cc2420 data sheet. On Mon, May 12, 2014 at 4:35 PM, Maryam Jalalitabar <[email protected]>wrote: > Hello, > > I have a simple question. I am reading the header file for CC2420 in > TinyOS (CC2420.h). I can not understand what the following part means: > > > enum cc2420_status_enums { > > > ... > > CC2420_STATUS_TX_ACTIVE = 1 << 3, > > ... > }; > > What does this part mean? > > > Thanks. > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
