What is the function of this code
atomic{                 packet_type = DATA;//Data                       
//lenght as seen by the receiver: sent data + crc                       
msg_ptr->length = msg_ptr->length + MSG_HEADER_SIZE + MSG_FOOTER_SIZE;          
        // put default FCF values                       msg_ptr->fcflo = 
CC2420_DEF_FCF_LO;                     msg_ptr->fcfhi = CC2420_DEF_FCF_HI;      
               // keep the DSN increasing for ACK recognition                  
msg_ptr->dsn = ++currentDSN;                                    // destination 
PAN is broadcast                 msg_ptr->destpan = TOS_BCAST_ADDR;             
         // adjust the destination address to be in the right byte order        
         msg_ptr->addr = toLSB16(msg_ptr->addr);                 ////// the 
following fields are not actually received //////                    // reset 
the time field                 msg_ptr->time = 0;              }
With regards      Sivasankar  

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to