[Tinyos-help] RSSI
roberto pagliari
bobtinyos07 at gmail.com
Wed Jul 4 15:32:11 PDT 2007
so, if I just need to know whenever the RSSI > CCA I can get it in the two
following ways (provided that the radio is in RxMode)
event result_t Timer.fired() {
/* First method */
uint8_t status;
uint16_t rssi_reg;
status = call HPLChipcon.cmd(CC2420_SNOP);
while( (status >> RSSI_VALID) & 0x01 ) {
status = call HPLChipcon.cmd(CC2420_SNOP);
}
rssi_reg = call HPLChipcon.read(CC2420_RSSI);
/* Second method */
if( TOSH_READ_RADIO_CCA_PIN() )
// do something
is that correct?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070704/1624d5d2/attachment.html
More information about the Tinyos-help
mailing list