N PHY Update TX Cal Ladder (u16 core)
- If core is zero
Set tmp to (nphy_txcal_bbmult >> 8) & 0xff
- Otherwise
Set tmp to nphy_txcal_bbmult & 0xff
- Loop 18 times with index i
- Set scale to (ladder_lo[i].percent * tmp) / 100
Set entry to ((scale & 0xFF) << 8) | ladder_lo[i].g_env
- Write an N PHY Table with ID 15, length 1, offset i, width 16, and data entry
- Set scale to (ladder_iq[i].percent * tmp) / 100
Set entry to ((scale & 0xFF) << 8) | ladder_iq[i].g_env
- Write an N PHY Table with ID 15, length 1, offset i + 32, width 16, and data entry
struct nphy_txiqcal_ladder {u8 percent; u8 g_env}
struct nphy_txiqcal_ladder ladder_lo
3 |
0 |
4 |
0 |
6 |
0 |
9 |
0 |
13 |
0 |
18 |
0 |
25 |
0 |
25 |
1 |
25 |
2 |
25 |
3 |
25 |
4 |
25 |
5 |
25 |
6 |
25 |
7 |
35 |
7 |
50 |
7 |
71 |
7 |
100 |
7 |
struct nphy_txiqcal_ladder ladder_iq
3 |
0 |
4 |
0 |
6 |
0 |
9 |
0 |
13 |
0 |
18 |
0 |
25 |
0 |
35 |
0 |
50 |
0 |
71 |
0 |
100 |
0 |
100 |
1 |
100 |
2 |
100 |
3 |
100 |
4 |
100 |
5 |
100 |
6 |
100 |
7 |