Set transmission power in Contiki-NG and NRF5340

Hi there,

I am trying to change the transmission power of the NRF5340 devices (for IEEE 802.15.4 radio) with Contiki-NG.
With some other hardware (sky motes) that is based on CC2420 radio we use a function like this:

static void
set_txpower(uint8_t power)
{
  uint16_t reg;

  reg = getreg(CC2420_TXCTRL);
  reg = (reg & 0xffe0) | (power & 0x1f);
  setreg(CC2420_TXCTRL, reg);
}
Obviously, NRF is not using CC2420 so this function is not working.
I wonder if there is a way to do that for NRF5340?
Bests,
Iliar
Related