Skip to main content

iq_polarity

Function iq_polarity 

Source
pub const fn iq_polarity(current: u8, invert_iq: bool) -> u8
Expand description

Returns the IQ polarity register value for a polarity, from section 15.4.

Bit 2 is cleared for inverted IQ and set for standard IQ.

§Arguments

  • current - the register value read back from the chip.
  • invert_iq - true for inverted IQ polarity.

§Returns

The value to write.