Loop position to RF and Baseband Values
Find the integer part of the loop position divided by the length of the RF Attenuation List, this is the offset into the RF Attenuation List
Note if the RF Attenuation List value has a flag set
Find the remainder of the divison, this is the offset into the Baseband Attenuation List
Retrieve the RF Attenuation List and Baseband Attenuation List values at the offsets found above
RF, Baseband and TXCTL1 Values to Row and Columns in the TX Power LO Control Array
Clamp the RF Attenuation List value to [0, Maximum RF Attenuation List Value]
Clamp the Baseband Attenuation List value to [0, Maximum Baseband Attenuation List Value]
Note if the RF Attenuation List Value has a Flag set
If the RF Attenuation List value is < 5 and the TXCTL1 value has bit 1 set
Use 4 for the RF Attenuation List value instead
- If the flag was set above
The offset Row is the RF Attenuation List value plus the Maximum RF Attenuation List value
- Otherwise
The offset Row is the RF Attenuation List value
The offset Column is the Baseband Attenuation List value