#[repr(C)]pub struct Control { /* private fields */ }Implementations§
Source§impl Control
impl Control
Sourcepub const ZERO: Self
pub const ZERO: Self
Creates a new instance with a raw value of 0. Equivalent to [Self::new_with_raw_value(0)].
Sourcepub const fn new_with_raw_value(value: u32) -> Control
pub const fn new_with_raw_value(value: u32) -> Control
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn request_stop(&self) -> bool
pub const fn request_stop(&self) -> bool
The counter is requested to stop on the next normal count cycle.
Sourcepub const fn with_request_stop(&self, field_value: bool) -> Self
pub const fn with_request_stop(&self, field_value: bool) -> Self
The counter is requested to stop on the next normal count cycle.
Sourcepub fn set_request_stop(&mut self, field_value: bool)
pub fn set_request_stop(&mut self, field_value: bool)
The counter is requested to stop on the next normal count cycle.
pub const fn status_invert(&self) -> bool
pub const fn with_status_invert(&self, field_value: bool) -> Self
pub fn set_status_invert(&mut self, field_value: bool)
pub const fn status_sel(&self) -> Result<StatusSelect, u8>
pub const fn with_status_sel(&self, field_value: StatusSelect) -> Self
pub fn set_status_sel(&mut self, field_value: StatusSelect)
pub const fn irq_enable(&self) -> bool
pub const fn with_irq_enable(&self, field_value: bool) -> Self
pub fn set_irq_enable(&mut self, field_value: bool)
Sourcepub const fn auto_deactivate(&self) -> bool
pub const fn auto_deactivate(&self) -> bool
Only applies if the Auto-Disable bit is 0. The ACTIVE bit goes to 0 when the count reaches 0, but the timer remains enabled.
Sourcepub const fn with_auto_deactivate(&self, field_value: bool) -> Self
pub const fn with_auto_deactivate(&self, field_value: bool) -> Self
Only applies if the Auto-Disable bit is 0. The ACTIVE bit goes to 0 when the count reaches 0, but the timer remains enabled.
Sourcepub fn set_auto_deactivate(&mut self, field_value: bool)
pub fn set_auto_deactivate(&mut self, field_value: bool)
Only applies if the Auto-Disable bit is 0. The ACTIVE bit goes to 0 when the count reaches 0, but the timer remains enabled.
Sourcepub const fn auto_disable(&self) -> bool
pub const fn auto_disable(&self) -> bool
Counter is fully disabled when count reaches 0, which means that both the ENABLE and ACTIVE bits go to 0.
Sourcepub const fn with_auto_disable(&self, field_value: bool) -> Self
pub const fn with_auto_disable(&self, field_value: bool) -> Self
Counter is fully disabled when count reaches 0, which means that both the ENABLE and ACTIVE bits go to 0.
Sourcepub fn set_auto_disable(&mut self, field_value: bool)
pub fn set_auto_disable(&mut self, field_value: bool)
Counter is fully disabled when count reaches 0, which means that both the ENABLE and ACTIVE bits go to 0.