LP PHY Set TX Power Control(u16 mode)
Read PHY Register 0x4A4, bitwise AND with 0xE000, and save as the old mode
- If the old mode is not equal to the input parameter mode
- If the old mode is equal to 0xE000
Perform the LP PHY TX Power Update Npt routine
Perform the LP PHY Clear TX Power Offsets routine
Else if mode is equal to 0xE000 (HW mode)
Perform the LP PHY TX Power Recalc Target routine
MaskSet PHY Register 0x4A4 with mask 0xFF80 and set with TSSI index
MaskSet PHY Register 0x4A5 with mask 0xF8FF and set with (TSSI npt << 8)
Read shared memory location 0xE0 and save the result in TSSI transmit count
Call LP PHY Set TX Gain Override with 0 as the argument
Write -1 to Transmit power index override
If the PHY revision >= 2
If mode equals 0xE000 (HW mode)
Bitwise OR PHY Register 0x4D0 with 2
- Otherwise
Bitwise AND PHY Register 0x4D0 with mask 0xFFFD
MaskSet PHY Register 0x4A4 with mask 0x1FFF and set with mode
- If the old mode is equal to 0xE000