bcm-v4

[Specification

u32 LP PHY Get Receive Power (s32 *index)

  1. If PHY Revision >= 2

    1. Set max_index to 36
    2. If *index >= 0

      1. Get code from the LP PHY Rev 2 Gaincode Table[*index]
  2. Otherwise
    1. Set max_index to 33
    2. If *index < 0

      1. Set *index to 20
    3. Read LP table with length 1, width 16, ID 0x0C, offset *index, and data pointer to code
  3. if *index is -1
    1. Set *index to 0
    2. Loop while index < max_index AND power < 700

      1. Call LP PHY Set RX Gain with argument from the LP PHY Rev 2 GainCode Table indexed by *index

      2. Call LP PHY Measure Digital Power with argument lpphy_noise_samples. Save result as power

      3. Increment *index
    3. Decrement *index
  4. Otherwise
    1. Call LP PHY Set RX Gain with argument code

    2. Call LP PHY Measure Digital Power with argument lpphy_noise_samples. Save result as power

  5. Return power

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