[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420 CC2420.h, 1.7, 1.8

dmm rincon at users.sourceforge.net
Wed Jan 16 18:09:41 PST 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11289

Modified Files:
	CC2420.h 
Log Message:
Fixed an edge case bug where the LQI takes on the RSSI value in the metadata when the payload is full.  Rearrange the metadata to store the bytes properly.

Index: CC2420.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/CC2420.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CC2420.h	4 Jul 2007 00:37:14 -0000	1.7
--- CC2420.h	17 Jan 2008 02:09:39 -0000	1.8
***************
*** 67,76 ****
  /**
   * CC2420 Packet metadata. Contains extra information about the message
!  * that will not be transmitted
   */
  typedef nx_struct cc2420_metadata_t {
-   nx_uint8_t tx_power;
    nx_uint8_t rssi;
    nx_uint8_t lqi;
    nx_bool crc;
    nx_bool ack;
--- 67,79 ----
  /**
   * CC2420 Packet metadata. Contains extra information about the message
!  * that will not be transmitted.
!  *
!  * Note that the first two bytes automatically take in the values of the
!  * FCS when the payload is full. Do not modify the first two bytes of metadata.
   */
  typedef nx_struct cc2420_metadata_t {
    nx_uint8_t rssi;
    nx_uint8_t lqi;
+   nx_uint8_t tx_power;
    nx_bool crc;
    nx_bool ack;



More information about the Tinyos-2-commits mailing list