pub struct W(/* private fields */);
Expand description
Register IM
writer
Implementations§
source§impl W
impl W
sourcepub fn ovrudrie(
&mut self
) -> BitWriterRaw<'_, u32, IM_SPEC, OVRUDRIE_A, BitM, 0>
pub fn ovrudrie( &mut self ) -> BitWriterRaw<'_, u32, IM_SPEC, OVRUDRIE_A, BitM, 0>
Bit 0 - Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set.
sourcepub fn mutedetie(
&mut self
) -> BitWriterRaw<'_, u32, IM_SPEC, MUTEDETIE_A, BitM, 1>
pub fn mutedetie( &mut self ) -> BitWriterRaw<'_, u32, IM_SPEC, MUTEDETIE_A, BitM, 1>
Bit 1 - Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode.
sourcepub fn wckcfgie(
&mut self
) -> BitWriterRaw<'_, u32, IM_SPEC, WCKCFGIE_A, BitM, 2>
pub fn wckcfgie( &mut self ) -> BitWriterRaw<'_, u32, IM_SPEC, WCKCFGIE_A, BitM, 2>
Bit 2 - Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes.
sourcepub fn freqie(&mut self) -> BitWriterRaw<'_, u32, IM_SPEC, FREQIE_A, BitM, 3>
pub fn freqie(&mut self) -> BitWriterRaw<'_, u32, IM_SPEC, FREQIE_A, BitM, 3>
Bit 3 - FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode,
sourcepub fn cnrdyie(&mut self) -> BitWriterRaw<'_, u32, IM_SPEC, CNRDYIE_A, BitM, 4>
pub fn cnrdyie(&mut self) -> BitWriterRaw<'_, u32, IM_SPEC, CNRDYIE_A, BitM, 4>
Bit 4 - Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver.
sourcepub fn afsdetie(
&mut self
) -> BitWriterRaw<'_, u32, IM_SPEC, AFSDETIE_A, BitM, 5>
pub fn afsdetie( &mut self ) -> BitWriterRaw<'_, u32, IM_SPEC, AFSDETIE_A, BitM, 5>
Bit 5 - Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master.
sourcepub fn lfsdetie(
&mut self
) -> BitWriterRaw<'_, u32, IM_SPEC, LFSDETIE_A, BitM, 6>
pub fn lfsdetie( &mut self ) -> BitWriterRaw<'_, u32, IM_SPEC, LFSDETIE_A, BitM, 6>
Bit 6 - Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master.
Methods from Deref<Target = W<IM_SPEC>>§
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.