## u32 LP PHY RX Signal Power (s32 index)

- Set gain to 0
Call LP PHY Get Receive Power with &index as argument. Save return as power

If PHY Revision >= 2

- Set gain to LP PHY Rev 2 Gain Table[index]

- Otherwise
- Set gain to 3 * index - 6

- Read PHY Register 0x425, right shift by 8 and save as nominal_power
Call Calc Log with argument (power * 16). Multiply by 3 and save as log_val

- Set mismatch to nominal_power / 2 - log_val
- Set gain to gain + mismatch
Read PHY Register 0x434, mask with 0xFF. If the result > 127, subtract 256. (8-bit arithmetic)

- Subtract gain from the result of the previous step and save as input_power
Call LP PHY RX Gain Override Enable with argument 0

- Return input_power