Writes TR Configuration memory. It is a programmer's responsibility to prepare the correct configuration block including the checksum byte. This command is for advanced users only. Please note that the device should be restarted for all configuration changes to take effect. See TR Configuration for details.
Request
NADR |
PNUM |
PCMD |
HWPID |
0 |
1 … 31 |
32 |
NADR |
0x02 |
0x0F |
? |
Undefined |
Configuration |
RFPGM |
Undefined Value does not matter. The checksum value that is read at this same position will be computed automatically.
Configuration Content the configuration memory block from address 0x01 to 0x1F.
RFPGM See the parameter of setupRFPGM IQRF OS function.
Response
The general response to writing request with STATUS_NO_ERROR Error code.
Example
The following example shows writing RF output power value to the configuration in the Custom DPA Handler code. Note - for changing just a few configuration values (bytes or bits) it more efficient to use Write TR Configuration byte.
// Read configuration
_PNUM = PNUM_OS;
_PCMD = CMD_OS_READ_CFG;
_DpaDataLength = 0;
DpaApiLocalRequest();
// Update TX power
_DpaMessage.PerOSWriteCfg_Request.Configuration[ CFGIND_TXPOWER - offsetof(TPerOSWriteCfg_Request, Configuration) ] = txPowerToSet;
// Write configuration
_PCMD = CMD_OS_WRITE_CFG;
_DpaDataLength = sizeof( TPerOSWriteCfg_Request );
DpaApiLocalRequest();