u8 LP PHY TX IQLO functional
- Create 2 lpphy_txgains structures for old_ and new_gains
- Create an LP PHY table with width = 16, length = 1
- Preset the gm_gain member of new_gains to 6
- Preset the pga_gain member of new_gains to 12
- Preset the pad_gain member of new_gains to 12
- Preset the dac_gain member of new_gains to 5
Call LP PHY Get TX Gain with &old gains as the argument
Call LP PHY Get TX IQCC with ( &a, &b) as arguments
Call LP PHY Get BBMult and save the result as s7
Read Radio Register 0x5A, bitwise AND with 7, and save result in tmp
Call LP PHY Set TX Gain with &new_gains as argument
Bitwise OR Radio Register 0x5A with 0x77
Call LP PHY Set BBMult with argument 0x40
Call LP PHY Set IQCC with ( 0x1f4, 0x1f4) as arguments
Write 0x7877 to PHY Register 0x452
Write 0x0AA9 to PHY Register 0x453
Call LP PHY Start TX Tone with arguments ( 0x9c4, 0x64)
Bitwise OR PHY Register 0x453 with 0x8000
Write 0x4000 to PHY Register 0x451
Call LP PHY IQcal Wait
Bitwise AND PHY Register 0x453 with 0x7FFF
- Set the table data pointer to a u16 data word, the table offset to 0x6B, and the table ID to 0
Call LP PHY Set TX Gain with argument &old_gains
Call LP PHY Set TX IQCC with arguments ( a, b)
Call LP PHY Set BBMult with argument s7
MaskSet Radio Register 0x5A with mask 0xFF88 and set with (tmp << 4 | tmp)
- Return (table data word != 0)