Struct stm32_metapac::sai::regs::Slotr
#[repr(transparent)]pub struct Slotr(pub u32);
Expand description
This register has no meaning in AC97 and SPDIF audio protocol
Tuple Fields§
§0: u32
Implementations§
§impl Slotr
impl Slotr
pub const fn fboff(&self) -> u8
pub const fn fboff(&self) -> u8
First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub fn set_fboff(&mut self, val: u8)
pub fn set_fboff(&mut self, val: u8)
First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub const fn slotsz(&self) -> Slotsz
pub const fn slotsz(&self) -> Slotsz
Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub fn set_slotsz(&mut self, val: Slotsz)
pub fn set_slotsz(&mut self, val: Slotsz)
Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub const fn nbslot(&self) -> u8
pub const fn nbslot(&self) -> u8
Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub fn set_nbslot(&mut self, val: u8)
pub fn set_nbslot(&mut self, val: u8)
Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub const fn sloten(&self) -> Sloten
pub const fn sloten(&self) -> Sloten
Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
pub fn set_sloten(&mut self, val: Sloten)
pub fn set_sloten(&mut self, val: Sloten)
Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode.
Trait Implementations§
impl Copy for Slotr
impl Eq for Slotr
impl StructuralPartialEq for Slotr
Auto Trait Implementations§
impl Freeze for Slotr
impl RefUnwindSafe for Slotr
impl Send for Slotr
impl Sync for Slotr
impl Unpin for Slotr
impl UnwindSafe for Slotr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)