nrf9160

Set command

The set command writes the %XMIPIRFFEDEV configuration to nRF9160 RAM memory.

The command configuration is stored to Non-volatile Memory (NVM) approximately every 48 hours and when the modem is set to minimum functionality mode with the +CFUN=0 command. The configuration can be stored to NVM with the %XFSSYNC command when the Production Test Image (PTI) modem firmware is used. The stored configuration is applied when any modem or Global Navigation Satellite System (GNSS) RF activity occurs.

Active %XPOFWARN warning blocks the storing to NVM.v1.3.x≥2

Syntax:

%XMIPIRFFEDEV=<dev_id>,<def_usid>,<prod_id>,<man_id>,<pm_trig>

The set command parameters and their defined values are the following:

<dev_id>
Selectable identification number for the device. Non-zero. Valid range 1–255. The given <dev_id> is used with the %XMIPIRFFECTRL and %XMIPIRFFEDBG commands.
<def_usid>
A 4-bit default Unique Slave Identifier (USID) for the MIPI RF Front-End Control Interface (RFFE) device. Typically, 7 for antenna tuners (as suggested by MIPI).
<prod_id>
An 8-bit PRODUCT_ID of the MIPI RFFE device. Only used if automatic reprogramming of the USID is needed. EXT_PRODUCT_ID is not supported.
<man_id>
A 10-bit MANUFACTURER_ID of the MIPI RFFE device. Only used if automatic reprogramming of the USID is needed.
<pm_trig>
An 8-bit content for PM_TRIG (address 0x1C = 28 dec) register. This is for setting the default power and triggering mode. The setting of PM_TRIG can be also changed in the ON phase. See %XMIPIRFFECTRL.

All numbers should be given as decimals, that is, not as hexadecimals. Currently, nRF9160 supports only one System in Package (SiP)-external MIPI RFFE-controlled device.