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.
- 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
- 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
Write the LNA/HPF value to OFDM Register 0x1C
- If the Low Pass Filter value was 0
AND OFDM Register 0x20 with 0xFF0F
- Otherwise
MaskSet OFDM Register 0x20 with mask 0xFF0F and set with 0x60
- If the PHY Revision is 2 or less
Write the Gain Value to OFDM Table 0xF, offset 0xC
Write Gain Value to Radio Register 0x2
- Otherwise
Write the Gain Value to Radio Register 0x2