pub struct ControlStatus2 { /* private fields */ }Expand description
Control and status register 2. Controls timer/alarm interrupts and flags.
Implementations§
Source§impl ControlStatus2
impl ControlStatus2
Sourcepub fn ti_tp(&self) -> bool
pub fn ti_tp(&self) -> bool
Read the ti_tp field of the register.
Timer interrupt mode.
- false (0): INT active when TF is active (level mode)
- true (1): INT pulses active (pulse mode)
Sourcepub fn af(&self) -> bool
pub fn af(&self) -> bool
Read the af field of the register.
Alarm flag. Read: false = alarm inactive, true = alarm active Write: false = clears flag, true = flag unchanged
Sourcepub fn tf(&self) -> bool
pub fn tf(&self) -> bool
Read the tf field of the register.
Timer flag. Read: false = timer inactive, true = timer active Write: false = clears flag, true = flag unchanged
Sourcepub fn aie(&self) -> bool
pub fn aie(&self) -> bool
Read the aie field of the register.
Alarm interrupt enable.
- false (0): Alarm interrupt disabled
- true (1): Alarm interrupt enabled
Sourcepub fn tie(&self) -> bool
pub fn tie(&self) -> bool
Read the tie field of the register.
Timer interrupt enable.
- false (0): Timer interrupt disabled
- true (1): Timer interrupt enabled
Sourcepub fn set_ti_tp(&mut self, value: bool)
pub fn set_ti_tp(&mut self, value: bool)
Write the ti_tp field of the register.
Timer interrupt mode.
- false (0): INT active when TF is active (level mode)
- true (1): INT pulses active (pulse mode)
Sourcepub fn set_af(&mut self, value: bool)
pub fn set_af(&mut self, value: bool)
Write the af field of the register.
Alarm flag. Read: false = alarm inactive, true = alarm active Write: false = clears flag, true = flag unchanged
Sourcepub fn set_tf(&mut self, value: bool)
pub fn set_tf(&mut self, value: bool)
Write the tf field of the register.
Timer flag. Read: false = timer inactive, true = timer active Write: false = clears flag, true = flag unchanged
Trait Implementations§
Source§impl BitAnd for ControlStatus2
impl BitAnd for ControlStatus2
Source§impl BitAndAssign for ControlStatus2
impl BitAndAssign for ControlStatus2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for ControlStatus2
impl BitOr for ControlStatus2
Source§impl BitOrAssign for ControlStatus2
impl BitOrAssign for ControlStatus2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for ControlStatus2
impl BitXor for ControlStatus2
Source§impl BitXorAssign for ControlStatus2
impl BitXorAssign for ControlStatus2
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for ControlStatus2
impl Clone for ControlStatus2
Source§fn clone(&self) -> ControlStatus2
fn clone(&self) -> ControlStatus2
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more