bcm-v4

[Specification

u32 LP PHY RX Signal Power (s32 index)

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

  3. If PHY Revision >= 2

    1. Set gain to LP PHY Rev 2 Gain Table[index]
  4. Otherwise
    1. Set gain to 3 * index - 6
  5. Read PHY Register 0x425, right shift by 8 and save as nominal_power
  6. Call Calc Log with argument (power * 16). Multiply by 3 and save as log_val

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

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

  12. Return input_power

Exported/Archived from the wiki to HTML on 2016-10-27