#[repr(transparent)]pub struct Gptimer0ctrl(pub u32);Expand description
General Purpose Timer #0 Controller
Tuple Fields§
§0: u32Implementations§
Source§impl Gptimer0ctrl
impl Gptimer0ctrl
Sourcepub const fn set_gptcnt(&mut self, val: u32)
pub const fn set_gptcnt(&mut self, val: u32)
General Purpose Timer Counter
Sourcepub const fn gptmode(&self) -> Gptimer0ctrlGptmode
pub const fn gptmode(&self) -> Gptimer0ctrlGptmode
General Purpose Timer Mode
Sourcepub const fn set_gptmode(&mut self, val: Gptimer0ctrlGptmode)
pub const fn set_gptmode(&mut self, val: Gptimer0ctrlGptmode)
General Purpose Timer Mode
Sourcepub const fn gptrst(&self) -> Gptimer0ctrlGptrst
pub const fn gptrst(&self) -> Gptimer0ctrlGptrst
General Purpose Timer Reset
Sourcepub const fn set_gptrst(&mut self, val: Gptimer0ctrlGptrst)
pub const fn set_gptrst(&mut self, val: Gptimer0ctrlGptrst)
General Purpose Timer Reset
Sourcepub const fn gptrun(&self) -> Gptimer0ctrlGptrun
pub const fn gptrun(&self) -> Gptimer0ctrlGptrun
General Purpose Timer Run
Sourcepub const fn set_gptrun(&mut self, val: Gptimer0ctrlGptrun)
pub const fn set_gptrun(&mut self, val: Gptimer0ctrlGptrun)
General Purpose Timer Run
Trait Implementations§
Source§impl Clone for Gptimer0ctrl
impl Clone for Gptimer0ctrl
Source§fn clone(&self) -> Gptimer0ctrl
fn clone(&self) -> Gptimer0ctrl
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 Gptimer0ctrl
impl Debug for Gptimer0ctrl
Source§impl Default for Gptimer0ctrl
impl Default for Gptimer0ctrl
Source§fn default() -> Gptimer0ctrl
fn default() -> Gptimer0ctrl
Returns the “default value” for a type. Read more
Source§impl PartialEq for Gptimer0ctrl
impl PartialEq for Gptimer0ctrl
impl Copy for Gptimer0ctrl
impl Eq for Gptimer0ctrl
impl StructuralPartialEq for Gptimer0ctrl
Auto Trait Implementations§
impl Freeze for Gptimer0ctrl
impl RefUnwindSafe for Gptimer0ctrl
impl Send for Gptimer0ctrl
impl Sync for Gptimer0ctrl
impl Unpin for Gptimer0ctrl
impl UnwindSafe for Gptimer0ctrl
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