How to adjust TX power and RX gain for nRF21540 EK+nRF52833 DK

I want to know how to adjust the TX RX setting for the nRF52833 DK connected to the nRF21540 EK shield. I have already added -DSHIELD="nrf21540ek" to the build configuration and have successfully achieved fixed RX and TX gain. Now, I want to change the TX power and the RX gain. My current configuration doesn't support this. Could you please tell me something about that? Is it only possible to make these changes using SPI mode?

My current setting is as:

#FEM
CONFIG_MPSL_FEM=y
CONFIG_MPSL=y
CONFIG_MPSL_FEM_NRF21540_GPIO=y
CONFIG_MPSL_FEM_NRF21540_GPIO_SPI=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_MPSL_FEM_NRF21540_TX_GAIN_DB=20
CONFIG_MPSL_FEM_NRF21540_RX_GAIN_DB=13
CONFIG_BT_CTLR_TX_PWR_ANTENNA=-20
By the way, is there any code negotiate RX and TX power to reduce the power consumption of TX.
Related