欢迎来到天天文库
浏览记录
ID:11231760
大小:114.00 KB
页数:16页
时间:2018-07-10
《基于cc1100无线通信模块的c程序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include#include#defineINT8Uunsignedchar#defineINT16Uunsignedint#defineWRITE_BURST0x40//连续写入#defineREAD_SINGLE0x80//读#defineREAD_BURST0xC0//连续读#defineBYTES_IN_RXFIFO0x7F//接收缓冲区的有效字节数#defineCRC_OK0x80//CRC校验通过位标志#defineCCxxx0_IOCFG20x00//GDO2outputpinconfigurat
2、ion#defineCCxxx0_IOCFG10x01//GDO1outputpinconfiguration#defineCCxxx0_IOCFG00x02//GDO0outputpinconfiguration#defineCCxxx0_FIFOTHR0x03//RXFIFOandTXFIFOthresholds#defineCCxxx0_SYNC10x04//Syncword,highINT8U#defineCCxxx0_SYNC00x05//Syncword,lowINT8U#defineCCxxx0_PKTLEN0x06//Packetleng
3、th#defineCCxxx0_PKTCTRL10x07//Packetautomationcontrol#defineCCxxx0_PKTCTRL00x08//Packetautomationcontrol#defineCCxxx0_ADDR0x09//Deviceaddress#defineCCxxx0_CHANNR0x0A//Channelnumber#defineCCxxx0_FSCTRL10x0B//Frequencysynthesizercontrol#defineCCxxx0_FSCTRL00x0C//Frequencysynthesize
4、rcontrol#defineCCxxx0_FREQ20x0D//Frequencycontrolword,highINT8U#defineCCxxx0_FREQ10x0E//Frequencycontrolword,middleINT8U#defineCCxxx0_FREQ00x0F//Frequencycontrolword,lowINT8U#defineCCxxx0_MDMCFG40x10//Modemconfiguration#defineCCxxx0_MDMCFG30x11//Modemconfiguration#defineCCxxx0_MD
5、MCFG20x12//Modemconfiguration#defineCCxxx0_MDMCFG10x13//Modemconfiguration#defineCCxxx0_MDMCFG00x14//Modemconfiguration#defineCCxxx0_DEVIATN0x15//Modemdeviationsetting#defineCCxxx0_MCSM20x16//MainRadioControlStateMachineconfiguration#defineCCxxx0_MCSM10x17//MainRadioControlStateM
6、achineconfiguration#defineCCxxx0_MCSM00x18//MainRadioControlStateMachineconfiguration#defineCCxxx0_FOCCFG0x19//FrequencyOffsetCompensationconfiguration#defineCCxxx0_BSCFG0x1A//BitSynchronizationconfiguration#defineCCxxx0_AGCCTRL20x1B//AGCcontrol#defineCCxxx0_AGCCTRL10x1C//AGCcont
7、rol#defineCCxxx0_AGCCTRL00x1D//AGCcontrol#defineCCxxx0_WOREVT10x1E//HighINT8UEvent0timeout#defineCCxxx0_WOREVT00x1F//LowINT8UEvent0timeout#defineCCxxx0_WORCTRL0x20//WakeOnRadiocontrol#defineCCxxx0_FREND10x21//FrontendRXconfiguration#defineCCxxx0_FREND00x22//FrontendTXconfiguratio
8、n#defineCCxxx0_FSCAL30x23//Frequencysynt
此文档下载收益归作者所有