For each TX output power value between -11dBm and 11dBm the apropriate value for the register
RG_PHY_TX_PWR can be retrieved from
table 7-15 (Recommended Mapping of TX Power, Frequency Band, and PHY_TX_PWR) in the AT86RF212 datasheet.
- Parameters:
-
| txpower | power level index retrieved from table 7-15 (Recommended Mapping of TX Power, Frequency Band, and PHY_TX_PWR) in the AT86RF212 datasheet. |
- Note:
- For a correct adjustment of the power level, the parameter gctxoffset have to be configured depending on the selected Physical Layer Mode.
Use Cases:
- Note:
- Additionally to the [CONFIG] states, the TX power level can also be changed in RX_AACK_ON in order to reduce the transmit power for an acknowledgement frame.
- Code example
This sequence reads the power level index from the register
RG_PHY_TX_PWR.
- Return values:
-
| txpower | The power level index value can be converted back to a dBm value by reverse applying the table 7-15 (Recommended Mapping of TX Power, Frequency Band, and PHY_TX_PWR) in the AT86RF212 datasheet. |
- Code example
-