PHY Noise CB (u8 channel, s8 noise)
If phynoise_state is zero
- Return
If phynoise_state & 0x1 is not zero
If phynoise_chan_watchdog equals channel
Set phynoise_window[phy_noise_index] to noise
Set phy_noise_index to (phy_noise_index < 7) ? phy_noise_index + 1 : 0
Clear bit 0x1 in phynoise_state
If phynoise_state & 0x2 is not zero
If phynoise_chan_scan equals channel
Set phy_noise_list[channel] to noise
Clear bit 0x2 in phynoise_state
If phynoise_state & 0x4 is not zero
Clear bit 0x4 in phynoise_state