Struct stm32_metapac::sai::regs::Im
#[repr(transparent)]pub struct Im(pub u32);
Expand description
Interrupt mask register 2
Tuple Fields§
§0: u32
Implementations§
§impl Im
impl Im
pub const fn ovrudrie(&self) -> bool
pub const fn ovrudrie(&self) -> bool
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.
pub fn set_ovrudrie(&mut self, val: bool)
pub fn set_ovrudrie(&mut self, val: bool)
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.
pub const fn mutedetie(&self) -> bool
pub const fn mutedetie(&self) -> bool
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.
pub fn set_mutedetie(&mut self, val: bool)
pub fn set_mutedetie(&mut self, val: bool)
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.
pub const fn wckcfgie(&self) -> bool
pub const fn wckcfgie(&self) -> bool
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.
pub fn set_wckcfgie(&mut self, val: bool)
pub fn set_wckcfgie(&mut self, val: bool)
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.
pub const fn freqie(&self) -> bool
pub const fn freqie(&self) -> bool
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,
pub fn set_freqie(&mut self, val: bool)
pub fn set_freqie(&mut self, val: bool)
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,
pub const fn cnrdyie(&self) -> bool
pub const fn cnrdyie(&self) -> bool
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.
pub fn set_cnrdyie(&mut self, val: bool)
pub fn set_cnrdyie(&mut self, val: bool)
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.
pub const fn afsdetie(&self) -> bool
pub const fn afsdetie(&self) -> bool
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.
pub fn set_afsdetie(&mut self, val: bool)
pub fn set_afsdetie(&mut self, val: bool)
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.
pub const fn lfsdetie(&self) -> bool
pub const fn lfsdetie(&self) -> bool
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.
pub fn set_lfsdetie(&mut self, val: bool)
pub fn set_lfsdetie(&mut self, val: bool)
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.