#[repr(transparent)]pub struct Gptimer1ctrl(pub u32);Expand description
General Purpose Timer 1 Controller. F70RM 44.6.1.11 (text line 112748). GPTCNT is read-only; GPTRST is a write-only load command. RM .10-.11 refer to timer 0 in timer 1 prose; those cross-references conflict with the timer 1 register names and are not resolved here.
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. Read-only status/value; writes do not configure this field.
Sourcepub const fn set_gptcnt(&mut self, val: u32)
pub const fn set_gptcnt(&mut self, val: u32)
General Purpose Timer Counter. Read-only status/value; writes do not configure this field.
Sourcepub const fn gptmode(&self) -> bool
pub const fn gptmode(&self) -> bool
General Purpose Timer Mode. Raw encoding: 0b - One Shot mode; 1b - Repeat mode.
Sourcepub const fn set_gptmode(&mut self, val: bool)
pub const fn set_gptmode(&mut self, val: bool)
General Purpose Timer Mode. Raw encoding: 0b - One Shot mode; 1b - Repeat mode.
Sourcepub const fn gptrst(&self) -> bool
pub const fn gptrst(&self) -> bool
General Purpose Timer Reset. Write-only command. Raw encoding: 0b - No action; 1b - Load counter value.
Sourcepub const fn set_gptrst(&mut self, val: bool)
pub const fn set_gptrst(&mut self, val: bool)
General Purpose Timer Reset. Write-only command. Raw encoding: 0b - No action; 1b - Load counter value.
Sourcepub const fn gptrun(&self) -> bool
pub const fn gptrun(&self) -> bool
General Purpose Timer Run. Raw encoding: 0b - Stopped counting; 1b - Running.
Sourcepub const fn set_gptrun(&mut self, val: bool)
pub const fn set_gptrun(&mut self, val: bool)
General Purpose Timer Run. Raw encoding: 0b - Stopped counting; 1b - Running.
Trait Implementations§
Source§impl Clone for Gptimer1ctrl
impl Clone for Gptimer1ctrl
Source§fn clone(&self) -> Gptimer1ctrl
fn clone(&self) -> Gptimer1ctrl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more