bcm-v4

[Specification

This sets the gain based on an LNA value, a PGA value and a TR value.

  1. If the Board Flags indicate an External LNA and the PHY Revision is 7 or greater

    1. OR PHY Register 0x811 with 0x800

    2. If the LNA value is 3
      1. Use 2 as the LNA value instead
      2. AND PHY Register 0x812 with 0x7FFF

    3. Otherwise
      1. Use 3 as the LNA value instead
      2. OR PHY Register 0x812 with 0x8000

  2. Loop 4 times, starting at 0
    1. Write the LNA value into the OFDM Table specified below at the offset specified by the loop position
  3. Loop 16 times, starting at the offset from the table below
    1. Write the PGA value into the OFDM Table specified below at the offset specified by the loop position
  4. Set the TR Bits using the TR value

  5. Backup PHY Registers 0x811 and 0x812

  6. AND PHY Register 0x812 with 0xFFFB

  7. OR PHY Register 0x811 with 0x4

  8. Do a CCK Dummy Transmission

  9. Restore PHY Registers 0x811 and 0x812

PHY Revision

OFDM Table

Offset

1

0x14

16

Otherwise

0x1

8


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