#[repr(transparent)]pub struct Csr(pub u32);Expand description
Control Status.
Tuple Fields§
§0: u32Implementations§
Source§impl Csr
impl Csr
Sourcepub const fn ten(&self) -> bool
pub const fn ten(&self) -> bool
Timer Enable. Raw bit values: false (0) = Ten0: Disable.; true (1) = Ten1: Enable.
Sourcepub const fn set_ten(&mut self, val: bool)
pub const fn set_ten(&mut self, val: bool)
Timer Enable. Raw bit values: false (0) = Ten0: Disable.; true (1) = Ten1: Enable.
Sourcepub const fn tms(&self) -> bool
pub const fn tms(&self) -> bool
Timer Mode Select. Raw bit values: false (0) = Tms0: Time Counter.; true (1) = Tms1: Pulse Counter.
Sourcepub const fn set_tms(&mut self, val: bool)
pub const fn set_tms(&mut self, val: bool)
Timer Mode Select. Raw bit values: false (0) = Tms0: Time Counter.; true (1) = Tms1: Pulse Counter.
Sourcepub const fn tfc(&self) -> bool
pub const fn tfc(&self) -> bool
Timer Free-Running Counter. Raw bit values: false (0) = Tfc0: Reset when TCF asserts.; true (1) = Tfc1: Reset on overflow.
Sourcepub const fn set_tfc(&mut self, val: bool)
pub const fn set_tfc(&mut self, val: bool)
Timer Free-Running Counter. Raw bit values: false (0) = Tfc0: Reset when TCF asserts.; true (1) = Tfc1: Reset on overflow.
Sourcepub const fn tpp(&self) -> bool
pub const fn tpp(&self) -> bool
Timer Pin Polarity. Raw bit values: false (0) = Tpp0: Active-high.; true (1) = Tpp1: Active-low.
Sourcepub const fn set_tpp(&mut self, val: bool)
pub const fn set_tpp(&mut self, val: bool)
Timer Pin Polarity. Raw bit values: false (0) = Tpp0: Active-high.; true (1) = Tpp1: Active-low.
Sourcepub const fn tie(&self) -> bool
pub const fn tie(&self) -> bool
Timer Interrupt Enable. Raw bit values: false (0) = Tie0: Disable.; true (1) = Tie1: Enable.
Sourcepub const fn set_tie(&mut self, val: bool)
pub const fn set_tie(&mut self, val: bool)
Timer Interrupt Enable. Raw bit values: false (0) = Tie0: Disable.; true (1) = Tie1: Enable.
Sourcepub const fn tcf(&self) -> bool
pub const fn tcf(&self) -> bool
Timer Compare Flag. Raw bit values: false (0) = NoMatch: CNR != (CMR + 1).; true (1) = Match: CNR = (CMR + 1).
Sourcepub const fn set_tcf(&mut self, val: bool)
pub const fn set_tcf(&mut self, val: bool)
Timer Compare Flag. Raw bit values: false (0) = NoMatch: CNR != (CMR + 1).; true (1) = Match: CNR = (CMR + 1).