bcm-v4

[Specification

This sets the initial gain values

Although we know what the individual bits mean (see below for details), this function is always called with the values below.

Gain Component

Value

LNA Value

7

LNA Attenuation

1

HPF 1

7

LPF

0

HPF 2

7

HPF 3

1

Setting the Initial Gain

To initialize gains, an LNA value, an LNA attenuation value, a low-pass filter and three high-pass filter values are required.

  1. Create the Gain Value as directed in these tables:

    PHY revision > 2

    Mask

    Contents

    0x1C00

    Third high-pass filter value

    0x0380

    Second high-pass filter value

    0x0040

    Lowest bit of low-pass filter value

    0x0038

    First high-pass filter value

    0x0007

    LNA value

    PHY revision <= 2

    Mask

    Contents

    0x3800

    Third high-pass filter value

    0x0700

    Second high-pass filter value

    0x0080

    Lowest bit of low-pass filter value

    0x0070

    First high-pass filter value

    0x0008

    Lowest bit of LNA attenuation value

    0x0007

    LNA value

  2. Create the LNA/HPF value according to this table:

    Mask

    Contents

    0xF000

    LNA attenuation value

    0x0E00

    LNA value

    0x01C0

    First high-pass filter value

    0x0038

    Second high-pass filter value

    0x0007

    Third high-pass filter value

  3. Write the LNA/HPF value to OFDM Register 0x1C

  4. If the Low Pass Filter value was 0
    1. AND OFDM Register 0x20 with 0xFF0F

  5. Otherwise
    1. MaskSet OFDM Register 0x20 with mask 0xFF0F and set with 0x60

  6. If the PHY Revision is 2 or less
    1. Write the Gain Value to OFDM Table 0xF, offset 0xC

    2. Write Gain Value to Radio Register 0x2

  7. Otherwise
    1. Write the Gain Value to Radio Register 0x2


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