欢迎来到天天文库
浏览记录
ID:41061657
大小:28.17 KB
页数:16页
时间:2019-08-15
《基于CC1100的无线收发模块程序》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、#include#include#defineINT8Uunsignedchar#defineINT16Uunsignedint#defineWRITE_BURST0x40//连续写入#defineREAD_SINGLE0x80//读#defineREAD_BURST0xC0//连续读#defineBYTES_IN_RXFIFO0x7F//接收缓冲区的有效字节数#defineCRC_OK0x80//CRC校验通过位标志#defineCCxxx0_IOCFG20
2、x00//GDO2outputpinconfiguration#defineCCxxx0_IOCFG10x01//GDO1outputpinconfiguration#defineCCxxx0_IOCFG00x02//GDO0outputpinconfiguration#defineCCxxx0_FIFOTHR0x03//RXFIFOandTXFIFOthresholds#defineCCxxx0_SYNC10x04//Syncword,highINT8U#defineCCxxx0_SYNC00x0
3、5//Syncword,lowINT8U#defineCCxxx0_PKTLEN0x06//Packetlength#defineCCxxx0_PKTCTRL10x07//Packetautomationcontrol#defineCCxxx0_PKTCTRL00x08//Packetautomationcontrol#defineCCxxx0_ADDR0x09//Deviceaddress#defineCCxxx0_CHANNR0x0A//Channelnumber#defineCCxxx0_FS
4、CTRL10x0B//Frequencysynthesizercontrol#defineCCxxx0_FSCTRL00x0C//Frequencysynthesizercontrol#defineCCxxx0_FREQ20x0D//Frequencycontrolword,highINT8U#defineCCxxx0_FREQ10x0E//Frequencycontrolword,middleINT8U#defineCCxxx0_FREQ00x0F//Frequencycontrolword,lo
5、wINT8U#defineCCxxx0_MDMCFG40x10//Modemconfiguration#defineCCxxx0_MDMCFG30x11//Modemconfiguration#defineCCxxx0_MDMCFG20x12//Modemconfiguration#defineCCxxx0_MDMCFG10x13//Modemconfiguration#defineCCxxx0_MDMCFG00x14//Modemconfiguration#defineCCxxx0_DEVIATN
6、0x15//Modemdeviationsetting#defineCCxxx0_MCSM20x16//MainRadioControlStateMachineconfiguration#defineCCxxx0_MCSM10x17//MainRadioControlStateMachineconfiguration#defineCCxxx0_MCSM00x18//MainRadioControlStateMachineconfiguration#defineCCxxx0_FOCCFG0x19//F
7、requencyOffsetCompensationconfiguration#defineCCxxx0_BSCFG0x1A//BitSynchronizationconfiguration#defineCCxxx0_AGCCTRL20x1B//AGCcontrol#defineCCxxx0_AGCCTRL10x1C//AGCcontrol#defineCCxxx0_AGCCTRL00x1D//AGCcontrol#defineCCxxx0_WOREVT10x1E//HighINT8UEvent0t
8、imeout#defineCCxxx0_WOREVT00x1F//LowINT8UEvent0timeout#defineCCxxx0_WORCTRL0x20//WakeOnRadiocontrol#defineCCxxx0_FREND10x21//FrontendRXconfiguration#defineCCxxx0_FREND00x22//FrontendTXconfiguration#defineCCxxx0_FSCAL30x23//Frequencysynt
此文档下载收益归作者所有