pub struct R(_);
Expand description
Register SR
reader
Implementations
sourceimpl R
impl R
sourcepub fn ovrudr(&self) -> BitReaderRaw<OVRUDR_A>
pub fn ovrudr(&self) -> BitReaderRaw<OVRUDR_A>
Bit 0 - Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register.
sourcepub fn mutedet(&self) -> BitReaderRaw<MUTEDET_A>
pub fn mutedet(&self) -> BitReaderRaw<MUTEDET_A>
Bit 1 - Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register.
sourcepub fn wckcfg(&self) -> BitReaderRaw<WCKCFG_A>
pub fn wckcfg(&self) -> BitReaderRaw<WCKCFG_A>
Bit 2 - Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register.
sourcepub fn freq(&self) -> BitReaderRaw<FREQ_A>
pub fn freq(&self) -> BitReaderRaw<FREQ_A>
Bit 3 - FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register.
sourcepub fn cnrdy(&self) -> BitReaderRaw<CNRDY_A>
pub fn cnrdy(&self) -> BitReaderRaw<CNRDY_A>
Bit 4 - Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register.
sourcepub fn afsdet(&self) -> BitReaderRaw<AFSDET_A>
pub fn afsdet(&self) -> BitReaderRaw<AFSDET_A>
Bit 5 - Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register.
sourcepub fn lfsdet(&self) -> BitReaderRaw<LFSDET_A>
pub fn lfsdet(&self) -> BitReaderRaw<LFSDET_A>
Bit 6 - Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register
sourcepub fn flvl(&self) -> FieldReaderRaw<u8, FLVL_A>
pub fn flvl(&self) -> FieldReaderRaw<u8, FLVL_A>
Bits 16:18 - FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:
Methods from Deref<Target = R<SR_SPEC>>
sourcepub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.