LP PHY PR41573
- Create an LP PHY table
- Allocate and clear 0x400 bytes - this is for the table data
Read PHY Register 0x4A4, AND with 0xE000 and save as tx_pwr_ctrl
Copy Transmit power index override to local u8
Save TSSI npt
Save TSSI index
If PHY revision < 2
- Set the table ID to 10
- Otherwise
- Set the table ID to 7
- Set the table width to 32, the table length to 256, the table offset to 0x140, and the table data pointer to the space obtained in step 2
Read an LP PHY table
Call PHY Reset with the SB hardware struct as argument
Call LP PHY Baseband Init
Call Switch Radio with argument 1
Call TX power control with argument 0
Write an LP PHY table
Call Write PHY Channel Reg with radio chanspec as argument
Restore TSSI npt
Restore TSSI index
Restore Transmit power index override
If local copy of Transmit power index override not equal to -1
Call LP PHY Set TX Power by Index with tx_power_idx_override as the argument
If RC cap not equal to 0
Call Set RC cap with RC cap as the argument
Call Set TX Power with tx_pwr_ctrl as the argument
- Free the table data space