#[repr(transparent)]pub struct Timctl(pub u32);Expand description
Timer Control
Tuple Fields§
§0: u32Implementations§
Source§impl Timctl
impl Timctl
Sourcepub const fn set_onetim(&mut self, val: bool)
pub const fn set_onetim(&mut self, val: bool)
Timer One Time Operation
Sourcepub const fn set_pinins(&mut self, val: Pinins)
pub const fn set_pinins(&mut self, val: Pinins)
Timer Pin Input Select
Sourcepub const fn pinpol(&self) -> TimctlPinpol
pub const fn pinpol(&self) -> TimctlPinpol
Timer Pin Polarity
Sourcepub const fn set_pinpol(&mut self, val: TimctlPinpol)
pub const fn set_pinpol(&mut self, val: TimctlPinpol)
Timer Pin Polarity
Sourcepub const fn set_pinsel(&mut self, val: u8)
pub const fn set_pinsel(&mut self, val: u8)
Timer Pin Select
Sourcepub const fn pincfg(&self) -> TimctlPincfg
pub const fn pincfg(&self) -> TimctlPincfg
Timer Pin Configuration
Sourcepub const fn set_pincfg(&mut self, val: TimctlPincfg)
pub const fn set_pincfg(&mut self, val: TimctlPincfg)
Timer Pin Configuration
Sourcepub const fn set_trgsrc(&mut self, val: Trgsrc)
pub const fn set_trgsrc(&mut self, val: Trgsrc)
Trigger Source
Sourcepub const fn set_trgpol(&mut self, val: Trgpol)
pub const fn set_trgpol(&mut self, val: Trgpol)
Trigger Polarity
Sourcepub const fn set_trgsel(&mut self, val: u8)
pub const fn set_trgsel(&mut self, val: u8)
Trigger Select
Trait Implementations§
impl Copy for Timctl
impl Eq for Timctl
impl StructuralPartialEq for Timctl
Auto Trait Implementations§
impl Freeze for Timctl
impl RefUnwindSafe for Timctl
impl Send for Timctl
impl Sync for Timctl
impl Unpin for Timctl
impl UnwindSafe for Timctl
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