CC1101_W_Config_Reg(CC1101_IOCFG2,0x01); /*接收*/
CC1101_W_Config_Reg(CC1101_IOCFG1,0x2e);
CC1101_W_Config_Reg(CC1101_IOCFG0,0x06); /*发送指示用*/
CC1101_W_Config_Reg(CC1101_FIFOTHR,0x47); /*fifo界限*/
CC1101_W_Config_Reg(CC1101_SYNC1,0xd3);
CC1101_W_Config_Reg(CC1101_SYNC0,0x91);
CC1101_W_Config_Reg(CC1101_PKTLEN,0x11); /*包长度*/
CC1101_W_Config_Reg(CC1101_PKTCTRL1,0x05); /*地址检查 RSSI and LQI使能*/
CC1101_W_Config_Reg(CC1101_PKTCTRL0,0x04); /*CRC使能,固定长度*/
CC1101_W_Config_Reg(CC1101_ADDR,0xff); /*本身地址*/
CC1101_W_Config_Reg(CC1101_CHANNR,0x00); /*频道*/
CC1101_W_Config_Reg(CC1101_FSCTRL1,0x06);
CC1101_W_Config_Reg(CC1101_FSCTRL0,0x00);
CC1101_W_Config_Reg(CC1101_FREQ2,0x10);
CC1101_W_Config_Reg(CC1101_FREQ1,0xa7); /*载波频率*/
CC1101_W_Config_Reg(CC1101_FREQ0,0x62);
CC1101_W_Config_Reg(CC1101_MDMCFG4,0xc9);
CC1101_W_Config_Reg(CC1101_MDMCFG3,0x93); /*频道宽度速率调制模式曼彻斯特使能同步字频道间隔 */
CC1101_W_Config_Reg(CC1101_MDMCFG2,0x13);
CC1101_W_Config_Reg(CC1101_MDMCFG1,0x22);
CC1101_W_Config_Reg(CC1101_MDMCFG0,0xf8);
CC1101_W_Config_Reg(CC1101_DEVIATN,0x34);
CC1101_W_Config_Reg(CC1101_MCSM2,0x07);
CC1101_W_Config_Reg(CC1101_MCSM1,0x3c); /*发送接收完后状态, 发送后进入空闲,*/
CC1101_W_Config_Reg(CC1101_MCSM0,0x18);
CC1101_W_Config_Reg(CC1101_FOCCFG,0x16);
CC1101_W_Config_Reg(CC1101_BSCFG,0x6c);
CC1101_W_Config_Reg(CC1101_AGCCTRL2,0x43);
CC1101_W_Config_Reg(CC1101_AGCCTRL1,0x40);
CC1101_W_Config_Reg(CC1101_AGCCTRL0,0x91);
CC1101_W_Config_Reg(CC1101_WOREVT1,0x0a);
CC1101_W_Config_Reg(CC1101_WOREVT0,0x94);
CC1101_W_Config_Reg(CC1101_WORCTRL,0x31);
CC1101_W_Config_Reg(CC1101_FREND1,0x56);
CC1101_W_Config_Reg(CC1101_FREND0,0x10);
CC1101_W_Config_Reg(CC1101_FSCAL3,0xe9);
CC1101_W_Config_Reg(CC1101_FSCAL2,0x2a);
CC1101_W_Config_Reg(CC1101_FSCAL1,0x00);
CC1101_W_Config_Reg(CC1101_FSCAL0,0x1f);
/**/
CC1101_W_Config_Reg(CC1101_RCCTRL1,0x41);
CC1101_W_Config_Reg(CC1101_RCCTRL0,0x00);
CC1101_W_Config_Reg(CC1101_FSTEST,0x59);
CC1101_W_Config_Reg(CC1101_PTEST,0x7f);
CC1101_W_Config_Reg(CC1101_AGCTEST,0x3f);
CC1101_W_Config_Reg(CC1101_TEST2,0x81);
CC1101_W_Config_Reg(CC1101_TEST1,0x35);
CC1101_W_Config_Reg(CC1101_TEST0,0x09);