Re: [Tinyos-help] Question about CC2420 header file

2014-05-12 Thread Eric Decker
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 Tab

[Tinyos-help] Question about CC2420 header file

2014-05-12 Thread Maryam Jalalitabar
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.