| Solution Details |
|---|
|
How do I set the output power of the radio?
The Tx power can be dynamiclly changed by calling eAppApiPlmeSet(PHY_PIB_ATTR_TX_POWER,level)
For example:
bool_t bSetTxPower(int iPower) // -30 <= iPower <= 0
{
bool_t bRetVal;
uint32 u32TxPower;
if(iPower <= 0 && iPower >= -30)
{
bRetVal = TRUE;
u32TxPower = iPower & 0x3F;
eAppApiPlmeSet(PHY_PIB_ATTR_TX_POWER, u32TxPower);
}
else
{
bRetVal = FALSE;
}
return bRetVal;
}
The output power setting is internally quantised in 6dB steps, hence the value will be rounded to the following possible values:
0dB
-6dB
-12dBm
-18dBm
-24dBm
-30dBm
So bSetTxPower(-11) will actually set -12dBm