nrf905.lst
来自「RF905 200米无线数据收发模块C语言程序」· LST 代码 · 共 37 行
LST
37 行
C51 COMPILER V8.08 NRF905 04/22/2008 22:35:11 PAGE 1
C51 COMPILER V8.08, COMPILATION OF MODULE NRF905
OBJECT MODULE PLACED IN nrf905.OBJ
COMPILER INVOKED BY: D:\Keil\C51\BIN\C51.EXE nrf905.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include <at89x52.h>
2 #include <intrins.h>
3
4 #define uchar unsigned char
5 #define uint unsigned int
6
7 #define WC 0x00 // Write configuration register command
8 #define RC 0x10 // Read configuration register command
9 #define WTP 0x20 // Write TX Payload command
10 #define RTP 0x21 // Read TX Payload command
11 #define WTA 0x22 // Write TX Address command
12 #define RTA 0x23 // Read TX Address command
13 #define RRP 0x24 // Read RX Payload command
14 /*******************************************************************************************/
15 typedef struct RFConfig
16 {
17 uchar n;
18 uchar buf[10];
19 }RFConfig;
20
21 code RFConfig RxTxConf =
22 {
23 10,
24 0x4c, 0x0c, 0x44, 0x20, 0x20, 0xcc, 0xcc,0xcc, 0xcc, 0x58
25 };// │ │ │ │ │ │ │ │ │ │
26 //字节0 字节1 字节2 字节3 字节4 字节5 字节6 字节7 字节8 字节9
27 // │ │ │ │ │ │ │ │ │ │
28 // │ │ │ │ │ │ │ │ │ 8位CRC校验位,CRC允许校验,外接16MHz晶体振荡器
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?