Struct stm32_metapac::sai::regs::Clrfr
#[repr(transparent)]pub struct Clrfr(pub u32);
Expand description
Clear flag register
Tuple Fields§
§0: u32
Implementations§
§impl Clrfr
impl Clrfr
pub const fn covrudr(&self) -> bool
pub const fn covrudr(&self) -> bool
Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0.
pub fn set_covrudr(&mut self, val: bool)
pub fn set_covrudr(&mut self, val: bool)
Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0.
pub const fn cmutedet(&self) -> bool
pub const fn cmutedet(&self) -> bool
Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0.
pub fn set_cmutedet(&mut self, val: bool)
pub fn set_cmutedet(&mut self, val: bool)
Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0.
pub const fn cwckcfg(&self) -> bool
pub const fn cwckcfg(&self) -> bool
Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0.
pub fn set_cwckcfg(&mut self, val: bool)
pub fn set_cwckcfg(&mut self, val: bool)
Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0.
pub const fn ccnrdy(&self) -> bool
pub const fn ccnrdy(&self) -> bool
Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0.
pub fn set_ccnrdy(&mut self, val: bool)
pub fn set_ccnrdy(&mut self, val: bool)
Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0.
pub const fn cafsdet(&self) -> bool
pub const fn cafsdet(&self) -> bool
Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0.
pub fn set_cafsdet(&mut self, val: bool)
pub fn set_cafsdet(&mut self, val: bool)
Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0.
pub const fn clfsdet(&self) -> bool
pub const fn clfsdet(&self) -> bool
Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0.
pub fn set_clfsdet(&mut self, val: bool)
pub fn set_clfsdet(&mut self, val: bool)
Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0.