#[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 pinins(&self) -> bool
pub const fn pinins(&self) -> bool
Timer Pin Input Select. Encoding1 requires an even PINSEL. Raw bit values: false (0) = Pinsel: PINSEL selects timer pin input and output.; true (1) = Pinselplus1: PINSEL + 1 selects the timer pin input; timer pin output remains selected by PINSEL.
Sourcepub const fn set_pinins(&mut self, val: bool)
pub const fn set_pinins(&mut self, val: bool)
Timer Pin Input Select. Encoding1 requires an even PINSEL. Raw bit values: false (0) = Pinsel: PINSEL selects timer pin input and output.; true (1) = Pinselplus1: PINSEL + 1 selects the timer pin input; timer pin output remains selected by PINSEL.
Sourcepub const fn pinpol(&self) -> bool
pub const fn pinpol(&self) -> bool
Timer Pin Polarity. Raw bit values: false (0) = ActiveHigh: Active high.; true (1) = ActiveLow: Active low.
Sourcepub const fn set_pinpol(&mut self, val: bool)
pub const fn set_pinpol(&mut self, val: bool)
Timer Pin Polarity. Raw bit values: false (0) = ActiveHigh: Active high.; true (1) = ActiveLow: Active low.
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. Disabling from encoding3 to0 must pass through encoding2.
Sourcepub const fn set_pincfg(&mut self, val: TimctlPincfg)
pub const fn set_pincfg(&mut self, val: TimctlPincfg)
Timer Pin Configuration. Disabling from encoding3 to0 must pass through encoding2.
Sourcepub const fn trgsrc(&self) -> bool
pub const fn trgsrc(&self) -> bool
Trigger Source. Raw bit values: false (0) = ExtTrig: External.; true (1) = InternalTrig: Internal.
Sourcepub const fn set_trgsrc(&mut self, val: bool)
pub const fn set_trgsrc(&mut self, val: bool)
Trigger Source. Raw bit values: false (0) = ExtTrig: External.; true (1) = InternalTrig: Internal.
Sourcepub const fn trgpol(&self) -> bool
pub const fn trgpol(&self) -> bool
Trigger Polarity. Raw bit values: false (0) = ActiveHigh: Active high.; true (1) = ActiveLow: Active low.
Sourcepub const fn set_trgpol(&mut self, val: bool)
pub const fn set_trgpol(&mut self, val: bool)
Trigger Polarity. Raw bit values: false (0) = ActiveHigh: Active high.; true (1) = ActiveLow: Active low.
Sourcepub const fn trgsel(&self) -> u8
pub const fn trgsel(&self) -> u8
Trigger Select. Internal source codes are all even values0..62, shifter codes4n+1 and timer codes4n+3 for n0..3. External trigger indices are0..3.
Sourcepub const fn set_trgsel(&mut self, val: u8)
pub const fn set_trgsel(&mut self, val: u8)
Trigger Select. Internal source codes are all even values0..62, shifter codes4n+1 and timer codes4n+3 for n0..3. External trigger indices are0..3.