This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

各位Ti大神,帮我看看代码有没有问题啊!!!

Other Parts Discussed in Thread: CC2530

从寄存器中读取RSSI的值,总是和结构体中的值不对应啊。帮小弟看看阿

uint8 temp_rssireg=0;
if(RSSISTAT==0x01){
temp_rssireg=RSSI;
if(temp_rssireg<128)
temp_rssireg=temp_rssireg-73;
else
temp_rssireg=(temp_rssireg-256)-73;
temp_rssireg=0-temp_rssireg;
}


char buff[20];
sprintf(buff,"==rssi2=%d\n",temp_rssireg);
TRACE(buff);