#[repr(transparent)]pub struct Gptimer1ctrl(pub u32);Expand description
General Purpose Timer #1 Controller
Tuple Fields§
§0: u32Implementations§
Source§impl Gptimer1ctrl
impl Gptimer1ctrl
Sourcepub const fn gptcnt(&self) -> u32
pub const fn gptcnt(&self) -> u32
General Purpose Timer Counter. This field is the count value of the countdown timer.
Sourcepub const fn set_gptcnt(&mut self, val: u32)
pub const fn set_gptcnt(&mut self, val: u32)
General Purpose Timer Counter. This field is the count value of the countdown timer.
Sourcepub const fn gptmode(&self) -> Gptimer1ctrlGptmode
pub const fn gptmode(&self) -> Gptimer1ctrlGptmode
General Purpose Timer Mode In one shot mode, the timer will count down to zero, generate an interrupt, and stop until the counter is reset by software
Sourcepub const fn set_gptmode(&mut self, val: Gptimer1ctrlGptmode)
pub const fn set_gptmode(&mut self, val: Gptimer1ctrlGptmode)
General Purpose Timer Mode In one shot mode, the timer will count down to zero, generate an interrupt, and stop until the counter is reset by software
Sourcepub const fn gptrst(&self) -> Gptimer1ctrlGptrst
pub const fn gptrst(&self) -> Gptimer1ctrlGptrst
General Purpose Timer Reset
Sourcepub const fn set_gptrst(&mut self, val: Gptimer1ctrlGptrst)
pub const fn set_gptrst(&mut self, val: Gptimer1ctrlGptrst)
General Purpose Timer Reset
Sourcepub const fn gptrun(&self) -> Gptimer1ctrlGptrun
pub const fn gptrun(&self) -> Gptimer1ctrlGptrun
General Purpose Timer Run GPTCNT bits are not effected when setting or clearing this bit.
Sourcepub const fn set_gptrun(&mut self, val: Gptimer1ctrlGptrun)
pub const fn set_gptrun(&mut self, val: Gptimer1ctrlGptrun)
General Purpose Timer Run GPTCNT bits are not effected when setting or clearing this bit.
Trait Implementations§
Source§impl Clone for Gptimer1ctrl
impl Clone for Gptimer1ctrl
Source§fn clone(&self) -> Gptimer1ctrl
fn clone(&self) -> Gptimer1ctrl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Gptimer1ctrl
impl Debug for Gptimer1ctrl
Source§impl Default for Gptimer1ctrl
impl Default for Gptimer1ctrl
Source§fn default() -> Gptimer1ctrl
fn default() -> Gptimer1ctrl
Returns the “default value” for a type. Read more
Source§impl PartialEq for Gptimer1ctrl
impl PartialEq for Gptimer1ctrl
impl Copy for Gptimer1ctrl
impl Eq for Gptimer1ctrl
impl StructuralPartialEq for Gptimer1ctrl
Auto Trait Implementations§
impl Freeze for Gptimer1ctrl
impl RefUnwindSafe for Gptimer1ctrl
impl Send for Gptimer1ctrl
impl Sync for Gptimer1ctrl
impl Unpin for Gptimer1ctrl
impl UnwindSafe for Gptimer1ctrl
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