#[repr(transparent)]pub struct Pcfg12(pub u32);Expand description
Configuration register 1 for channel pair.
Tuple Fields§
§0: u32Implementations§
Source§impl Pcfg12
impl Pcfg12
Sourcepub const fn pairenable(&self) -> bool
pub const fn pairenable(&self) -> bool
Enable for this channel pair.
Sourcepub const fn set_pairenable(&mut self, val: bool)
pub const fn set_pairenable(&mut self, val: bool)
Enable for this channel pair.
Sourcepub const fn onechannel(&self) -> Pcfg12Onechannel
pub const fn onechannel(&self) -> Pcfg12Onechannel
Single channel mode.
Sourcepub const fn set_onechannel(&mut self, val: Pcfg12Onechannel)
pub const fn set_onechannel(&mut self, val: Pcfg12Onechannel)
Single channel mode.
Trait Implementations§
impl Copy for Pcfg12
impl Eq for Pcfg12
impl StructuralPartialEq for Pcfg12
Auto Trait Implementations§
impl Freeze for Pcfg12
impl RefUnwindSafe for Pcfg12
impl Send for Pcfg12
impl Sync for Pcfg12
impl Unpin for Pcfg12
impl UnwindSafe for Pcfg12
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