Struct stm32_metapac::spi::regs::I2scfgr
#[repr(transparent)]pub struct I2scfgr(pub u32);
Expand description
I2S Configuration Register
Tuple Fields§
§0: u32
Implementations§
§impl I2scfgr
impl I2scfgr
pub fn set_i2smod(&mut self, val: bool)
pub fn set_i2smod(&mut self, val: bool)
I2S mode selection
pub fn set_i2scfg(&mut self, val: I2scfg)
pub fn set_i2scfg(&mut self, val: I2scfg)
I2S configuration mode
pub fn set_i2sstd(&mut self, val: I2sstd)
pub fn set_i2sstd(&mut self, val: I2sstd)
I2S standard selection
pub fn set_pcmsync(&mut self, val: Pcmsync)
pub fn set_pcmsync(&mut self, val: Pcmsync)
PCM frame synchronization
pub fn set_datlen(&mut self, val: Datlen)
pub fn set_datlen(&mut self, val: Datlen)
Data length to be transferred
pub fn set_datfmt(&mut self, val: Datfmt)
pub fn set_datfmt(&mut self, val: Datfmt)
Data format
pub fn set_i2sdiv(&mut self, val: u8)
pub fn set_i2sdiv(&mut self, val: u8)
I2S linear prescaler
Trait Implementations§
impl Copy for I2scfgr
impl Eq for I2scfgr
impl StructuralPartialEq for I2scfgr
Auto Trait Implementations§
impl Freeze for I2scfgr
impl RefUnwindSafe for I2scfgr
impl Send for I2scfgr
impl Sync for I2scfgr
impl Unpin for I2scfgr
impl UnwindSafe for I2scfgr
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)