pub struct R(_);
Expand description
Register CR2
reader
Implementations
sourceimpl R
impl R
sourcepub fn fth(&self) -> FieldReaderRaw<u8, FTH_A>
pub fn fth(&self) -> FieldReaderRaw<u8, FTH_A>
Bits 0:2 - FIFO threshold. This bit is set and cleared by software.
sourcepub fn tris(&self) -> BitReaderRaw<bool>
pub fn tris(&self) -> BitReaderRaw<bool>
Bit 4 - Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details.
sourcepub fn mute(&self) -> BitReaderRaw<MUTE_A>
pub fn mute(&self) -> BitReaderRaw<MUTE_A>
Bit 5 - Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.
sourcepub fn muteval(&self) -> BitReaderRaw<MUTEVAL_A>
pub fn muteval(&self) -> BitReaderRaw<MUTEVAL_A>
Bit 6 - Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.
sourcepub fn mutecnt(&self) -> FieldReaderRaw<u8, u8>
pub fn mutecnt(&self) -> FieldReaderRaw<u8, u8>
Bits 7:12 - Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details.
sourcepub fn cpl(&self) -> BitReaderRaw<CPL_A>
pub fn cpl(&self) -> BitReaderRaw<CPL_A>
Bit 13 - Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm.
sourcepub fn comp(&self) -> FieldReaderRaw<u8, COMP_A>
pub fn comp(&self) -> FieldReaderRaw<u8, COMP_A>
Bits 14:15 - Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected.
Methods from Deref<Target = R<CR2_SPEC>>
sourcepub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.