#[repr(transparent)]pub struct Cfg2(pub u32);Expand description
Configuration register 2 for the primary channel pair.
Tuple Fields§
§0: u32Implementations§
Source§impl Cfg2
impl Cfg2
Sourcepub const fn framelen(&self) -> u16
pub const fn framelen(&self) -> u16
Frame Length, minus 1 encoded, defines the number of clocks and data bits in the frames that this channel pair participates in.
Sourcepub const fn set_framelen(&mut self, val: u16)
pub const fn set_framelen(&mut self, val: u16)
Frame Length, minus 1 encoded, defines the number of clocks and data bits in the frames that this channel pair participates in.
Sourcepub const fn set_position(&mut self, val: u16)
pub const fn set_position(&mut self, val: u16)
Data Position.
Trait Implementations§
impl Copy for Cfg2
impl Eq for Cfg2
impl StructuralPartialEq for Cfg2
Auto Trait Implementations§
impl Freeze for Cfg2
impl RefUnwindSafe for Cfg2
impl Send for Cfg2
impl Sync for Cfg2
impl Unpin for Cfg2
impl UnwindSafe for Cfg2
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