nrf9160

Set command

The set command provides direct read and write access to the registers of a MIPI RF Front-End Control Interface (RFFE) device configured with the %XMIPIRFFECTRL command.

Syntax:

%XMIPIRFFEDBG=<dev_id>,<direction>,<address>,[<value>]

Response syntax:

%XMIPIRFFEDBG=<status>,<readvalue>

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

<dev_id>
The identification number of the MIPI RFFE device given when it was introduced using the %XMIPIRFFEDEV command.
<direction>
0 – Write to register.
1 – Read register.
<address>
Address of the MIPI RFFE register as a decimal number.
<value>
Value to be written to the register in decimal format. Applies only to the write command.
<status>
Indicates the status of MIPI RFFE access.
0 – Success.
1 – No response event from the MIPI RFFE peripheral.
2 – Timeout during read.
3 – Undefined error.
<readvalue>
Value read from MIPI RFFE device register. Returns the set value on register write.

The following command example reads register 0 of a MIPI RFFE device with device ID 1:

AT%XMIPIRFFEDBG=1,1,0
%XMIPIRFFEDBG: 0,2
OK

The following command example writes value 5 to register 37 of a MIPI RFFE device with device ID 1:

AT%XMIPIRFFEDBG=1,0,37,5
%XMIPIRFFEDBG: 0,5
OK