setup_ia4421.h
来自「芯科rf资料」· C头文件 代码 · 共 215 行
H
215 行
/*** ============================================================================**** FILE** Setup_IA4421.h**** DESCRIPTION** Header files for Si4421 usage **** CREATED** Silicon Laboratories Hungary Ltd**** COPYRIGHT** Copyright 2008 Silicon Laboratories, Inc. ** http://www.silabs.com**** ============================================================================*/#define IA4421//#define BAND_434//#define BAND_868#define BAND_915//==============================================================// RF specific definitions//==============================================================#ifdef BAND_434 //434MHz #ifdef BAND_868 | BAND_915 #error Error: only one frequency band can be selected! #endif #define FW_VERSION "1.2 434MHz" //FW version and frequency info //define radio parameters #define IA4421_CONFIGSET_CMD 0x8018 //Configuration Setting Command, Frequency Band: 915 MHz,Capacitance:12.5 pF #define FREQ_Band 0x0010 //Frequency band command #define FREQ_start 1332 //Start frequency command #define FREQ_step 132 //Frequency step command #define FREQ_maxid 3 #define MAX_FREQ "3" //Max channel number #define BAND_SELECTED#endif#ifdef BAND_868 //868MHz #ifdef BAND_434 | BAND_915 #error Error: only one frequency band can be selected! #endif #define FW_VERSION "1.2 868MHz" //FW version and frequency info //define radio parameters #define IA4421_CONFIGSET_CMD 0x8028 //Configuration Setting Command, Frequency Band: 915 MHz,Capacitance:12.5 pF #define FREQ_Band 0x0020 //Frequency band command #define FREQ_start 710 //Start frequency command #define FREQ_step 90 //Frequency step command #define FREQ_maxid 13 #define MAX_FREQ "13" //Max channel number #define BAND_SELECTED#endif#ifdef BAND_915 //915MHz #ifdef BAND_434 | BAND_868 #error Error: only one frequency band can be selected! #endif #define FW_VERSION "1.2 915MHz" //FW version and frequency info //define radio parameters #define IA4421_CONFIGSET_CMD 0x8038 //Configuration Setting Command, Frequency Band: 915 MHz,Capacitance:12.5 pF #define FREQ_Band 0x0030 //Frequency band command #define FREQ_start 112 //Start frequency command #define FREQ_step 64 //Frequency step command #define FREQ_maxid 59 #define MAX_FREQ "59" //Max channel number #define BAND_SELECTED#endif#ifndef BAND_SELECTED #error: Error: frequency band is not selected!#endif#define RF_DEV (90) //RF deviation /*Control commands*//* Power Management Command Crystal Oscillator: Enabled Clock Output: Disabled*/#define IA4421_POWERMAN_CMD 0x8209/* Frequency Setting Command Center Frequency 915 MHz*/#define IA4421_FREQSET_CMD 0xA7D0/* Data Rate Command Data Rate: 9.579 kbps*/#define IA4421_DATARATE_CMD 0xC623/* Receiver Control Command Function of Pin 16: Interrupt Input VDI Response Time: Fast Baseband Bandwidth 200 kHz LNA Gain Set: max. RSSI Treshold: -103 dBm*/#define IA4421_RECEIVERCNT_CMD 0x9080/* Data Filter Command Clock Recovery Mode: Slow Filter Type: Digital LPF DQD Parameter: 7*/#define IA4421_DATAFILTER_CMD 0xC22F/* FIFO and Reset Mode Command FIFO IT Level: 8 Synchron Pattern: 2DD4 FIFO Fill Start Condition: Synchron pattern Sensitive Reset: Disabled*/#define IA4421_FIFO_RESET_CMD 0xCA81/* Synchron Pattern Command Synchron Pattern: 0xD4*/#define IA4421_SYNCPATT_CMD 0xCED4/* AFC Command Automatic Operation Mode: Auto, keep Foffset Range Limit: +3/-4 Fres Fine Mode: Enabled Output: Enabled*/#define IA4421_AFC_CMD 0xC4F6/* TX Configuration Control Command Modulation Polarity: fo + df Frequency Deviation: 75 kHz Output Power: Pmax*/#define IA4421_TXCONFIG_CMD 0x9850/* PLL Setting Command uC CLK frequency: 2.5 MHz or below PLL Bandwidth Max. 256 kbps*/#define IA4421_PLLSET_CMD 0xCC67/* Wake Up Timer Command Time Period: 0.3 sec*/#define IA4421_WTC_CMD 0xE196/* Low Duty-Cycle Command Low Duty-Cycle: 10 %*/#define IA4421_LOWDUTYCCL_CMD 0xC80E/* Low Battery Detector and Microcontroller Clock Divider Command Threshold Voltage: 2.2 V Clock Output Frequency: 1 MHz*/#define IA4421_LBD_CMD 0xC000/************************************* End of header file ****************************************************/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?