u32 LP PHY RX IQ Est (u16 num_samps, u8 time, struct lpphy_iq_est *iq_est)
AND PHY Register 0x410 with mask 0xFFF7
Set PHY Register 0x482 to num_samps
MaskSet PHY Register 0x481 with mask 0xFF00 and set with argument time
AND PHY Register 0x481 with mask 0xFEFF
OR PHY Register 0x481 with bit 0x0200
- Poll with 100 usec intervals for up to 0.5 sec
If PHY Register 0x481 & 0x200 becomes zero
- Break from polling loop
- If the maximum time is exceeded
Set 0x8 in PHY Register 0x410
- Return 0
Read PHY Register 0x483, shift left by 0x10, OR with PHY Register 0x484 and store in iq_prod member of iq_est
Read PHY Register 0x485, shift left by 0x10, OR with PHY Register 0x486 and store in i_pwr member of iq_est
Read PHY Register 0x487, shift left by 0x10, OR with PHY Register 0x488 and store in q_pwr member of iq_est
Set 0x8 in PHY Register 0x410
- Return 1