Function |
|
Restart RF IC if it is required after internal failure |
Purpose |
|
There is a silicon issue in some pieces of RF IC Spirit 1 which is used in TR-7xG transceivers. See Errata - Workaround for sporadic RF IC failure. Therefore, this function has been designed to fix this issue. It detects the erroneous state, resets the RF IC and the return value informs the user that the failure occurred. In this case, the user should restore all non-default RF parameters. |
Syntax |
|
bit wasRFICrestarted() |
Parameters |
|
– |
Return value |
|
• 1 RF IC failure was detected and RF IC reset has been performed. • 0 No RF IC failure was detected, no RF IC reset has been performed. |
Output values |
|
– |
Preconditions |
|
• To be checked after RFTXpacket and RFRXpacket • It is recommended to include this function in every RF loop in the user application. See CustomDpaHandler-Bonding.c. |
Remarks |
|
• If RF IC restart has been performed, all RF parameters specified by the user (RF channel, TX power, possibly RF band and parameters set by the setRFmode and checkRF) which are different from OS default and parameters specified in TR configuration must be restored first. See Example. • If RF IC reset is performed, it takes about 100 ms. |
Side effects |
|
– |
See also |
|
|
Example |
|
while (1) { ... RFTXpacket(); if (wasRFICrestarted()) { setRFmode(0x50); ... } |