Thread 中讨论的其他器件:SysConfig
SysConfig 工具生成的 txPowerTable 没有10dBm 条目。
我们使用此选项在一些特殊测试代码(而不是 ZStack)中设置功率。
RF_setTxPower( rfHandle, RF_TxPowerTable_findValue((RF_TxPowerTable_Entry *) txPowerTable, TX_POWER_DBM));
这适用于其他值、但我们需要能够为某些国家/地区的某些机构测试设置10dBm。
是否可以获取 缺失值的条目? (我真的只需要10、14和20)
// TX Power table
// The RF_TxPowerTable_DEFAULT_PA_ENTRY and RF_TxPowerTable_HIGH_PA_ENTRY macros are defined in RF.h.
// The following arguments are required:
// RF_TxPowerTable_DEFAULT_PA_ENTRY(bias, gain, boost coefficient)
// RF_TxPowerTable_HIGH_PA_ENTRY(bias, ibboost, boost, coefficient, ldoTrim)
// See the Technical Reference Manual for further details about the "txPower" Command field.
// The PA settings require the CCFG_FORCE_VDDR_HH = 0 unless stated otherwise.
const RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE] =
{
{-20, RF_TxPowerTable_DEFAULT_PA_ENTRY(6, 3, 0, 2) },
{-18, RF_TxPowerTable_DEFAULT_PA_ENTRY(8, 3, 0, 3) },
{-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(10, 3, 0, 3) },
{-12, RF_TxPowerTable_DEFAULT_PA_ENTRY(12, 3, 0, 5) },
{-10, RF_TxPowerTable_DEFAULT_PA_ENTRY(15, 3, 0, 5) },
{-9, RF_TxPowerTable_DEFAULT_PA_ENTRY(16, 3, 0, 5) },
{-6, RF_TxPowerTable_DEFAULT_PA_ENTRY(20, 3, 0, 8) },
{-5, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 3, 0, 9) },
{-3, RF_TxPowerTable_DEFAULT_PA_ENTRY(19, 2, 0, 12) },
{0, RF_TxPowerTable_DEFAULT_PA_ENTRY(19, 1, 0, 20) },
{1, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 1, 0, 20) },
{2, RF_TxPowerTable_DEFAULT_PA_ENTRY(25, 1, 0, 25) },
{3, RF_TxPowerTable_DEFAULT_PA_ENTRY(29, 1, 0, 28) },
{4, RF_TxPowerTable_DEFAULT_PA_ENTRY(35, 1, 0, 39) },
{5, RF_TxPowerTable_DEFAULT_PA_ENTRY(23, 0, 0, 57) },
{14, RF_TxPowerTable_HIGH_PA_ENTRY(22, 3, 1, 19, 27) },
{15, RF_TxPowerTable_HIGH_PA_ENTRY(26, 3, 1, 23, 27) },
{16, RF_TxPowerTable_HIGH_PA_ENTRY(30, 3, 1, 28, 27) },
{17, RF_TxPowerTable_HIGH_PA_ENTRY(37, 3, 1, 39, 27) },
{18, RF_TxPowerTable_HIGH_PA_ENTRY(32, 3, 1, 35, 48) },
{19, RF_TxPowerTable_HIGH_PA_ENTRY(34, 3, 1, 48, 63) },
{20, RF_TxPowerTable_HIGH_PA_ENTRY(53, 3, 1, 58, 63) },
RF_TxPowerTable_TERMINATION_ENTRY
};
谢谢、
-Bill