cc2530点对点通信

上传者: 30815237 | 上传时间: 2025-04-13 10:07:10 | 文件大小: 31KB | 文件类型: ZIP
void rf_receive_isr() { int rf_rx_len = 0; int rssi = 0; char crc_ok = 0; rf_rx_len = RFD - 2; // 长度去除两字节附加结果 rf_rx_len &= 0x7F; for (int i = 0; i < rf_rx_len; i++) { rf_rx_buf[i] = RFD; // 连续读取接收缓冲区内容 } rssi = RFD - 73; // 读取RSSI结果 crc_ok = RFD; // 读取CRC校验结果 BIT7 RFST = 0xED; // 清除接收缓冲区 if( crc_ok & 0x80 ) { uart0_sendbuf( rf_rx_buf , rf_rx_len); // 串口发送 printf("[%d]",rssi); } else { printf("\r\nCRC Error\r\n"); } }

文件下载

资源详情

[{"title":"( 32 个子文件 31KB ) cc2530点对点通信","children":[{"title":"10.1.2 RF_TRX","children":[{"title":"TRX.ewd <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"TRX.eww <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":".hg","children":[{"title":"thgstatus <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"cache","children":[{"title":"tags <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"branchheads-served <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"branchheads <span style='color:#111;'> 92B </span>","children":null,"spread":false}],"spread":true},{"title":"last-message.txt <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"dirstate <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"cur-message.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"requires <span style='color:#111;'> 33B </span>","children":null,"spread":false},{"title":"undo.branch <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"branch <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"00changelog.i <span style='color:#111;'> 57B </span>","children":null,"spread":false},{"title":"undo.desc <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"undo.bookmarks <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"undo.dirstate <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"store","children":[{"title":"data","children":[{"title":"_t_r_x.ewp.i <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"main.c.i <span style='color:#111;'> 8.23KB </span>","children":null,"spread":false},{"title":"_t_r_x.eww.i <span style='color:#111;'> 193B </span>","children":null,"spread":false},{"title":"~2ehgignore.i <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"_t_r_x.ewd.i <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"~c7~e5~b3~fd~b9~a4~b3~cc.bat.i <span style='color:#111;'> 265B </span>","children":null,"spread":false}],"spread":false},{"title":"undo <span style='color:#111;'> 58B </span>","children":null,"spread":false},{"title":"00changelog.i <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"phaseroots <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"fncache <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"undo.phaseroots <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"00manifest.i <span style='color:#111;'> 783B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"TRX.ewp <span style='color:#111;'> 54.91KB </span>","children":null,"spread":false},{"title":"清除工程.bat <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":".hgignore <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明