#[repr(transparent)]struct Ctrl(u8);
Expand description
Timer control register
Tuple Fields§
§0: u8
Implementations§
source§impl Ctrl
impl Ctrl
const ENABLE_TIMER_COUNTER2_BITS: usize = 1usize
const ENABLE_TIMER_COUNTER2_OFFSET: usize = 0usize
sourceconst fn enable_timer_counter2(&self) -> bool
const fn enable_timer_counter2(&self) -> bool
Enable the timer
Bits: 0..1
sourceconst fn with_enable_timer_counter2(self, value: bool) -> Self
const fn with_enable_timer_counter2(self, value: bool) -> Self
Enable the timer
Bits: 0..1
sourcefn set_enable_timer_counter2(&mut self, value: bool)
fn set_enable_timer_counter2(&mut self, value: bool)
Enable the timer
Bits: 0..1
const ENABLE_SPEAKER_DATA_BITS: usize = 1usize
const ENABLE_SPEAKER_DATA_OFFSET: usize = 1usize
sourceconst fn enable_speaker_data(&self) -> bool
const fn enable_speaker_data(&self) -> bool
If set, speaker output is equal to status_timer_counter2
Bits: 1..2
sourceconst fn with_enable_speaker_data(self, value: bool) -> Self
const fn with_enable_speaker_data(self, value: bool) -> Self
If set, speaker output is equal to status_timer_counter2
Bits: 1..2
sourcefn set_enable_speaker_data(&mut self, value: bool)
fn set_enable_speaker_data(&mut self, value: bool)
If set, speaker output is equal to status_timer_counter2
Bits: 1..2
const REFRESH_CYCLE_TOGGLE_BITS: usize = 1usize
const REFRESH_CYCLE_TOGGLE_OFFSET: usize = 4usize
sourceconst fn refresh_cycle_toggle(&self) -> bool
const fn refresh_cycle_toggle(&self) -> bool
Must be zero on write
Bits: 4..5
sourceconst fn with_refresh_cycle_toggle(self, value: bool) -> Self
const fn with_refresh_cycle_toggle(self, value: bool) -> Self
Must be zero on write
Bits: 4..5
sourcefn set_refresh_cycle_toggle(&mut self, value: bool)
fn set_refresh_cycle_toggle(&mut self, value: bool)
Must be zero on write
Bits: 4..5
const STATUS_TIMER_COUNTER2_BITS: usize = 1usize
const STATUS_TIMER_COUNTER2_OFFSET: usize = 5usize
sourceconst fn status_timer_counter2(&self) -> bool
const fn status_timer_counter2(&self) -> bool
Will be set on timer expiration; must be 0 on write
Bits: 5..6
sourceconst fn with_status_timer_counter2(self, value: bool) -> Self
const fn with_status_timer_counter2(self, value: bool) -> Self
Will be set on timer expiration; must be 0 on write
Bits: 5..6
sourcefn set_status_timer_counter2(&mut self, value: bool)
fn set_status_timer_counter2(&mut self, value: bool)
Will be set on timer expiration; must be 0 on write
Bits: 5..6
const STATUS_IOCHK_NMI_SOURCE_BITS: usize = 1usize
const STATUS_IOCHK_NMI_SOURCE_OFFSET: usize = 6usize
sourceconst fn status_iochk_nmi_source(&self) -> bool
const fn status_iochk_nmi_source(&self) -> bool
Not important, must be 0 on write
Bits: 6..7
sourceconst fn with_status_iochk_nmi_source(self, value: bool) -> Self
const fn with_status_iochk_nmi_source(self, value: bool) -> Self
Not important, must be 0 on write
Bits: 6..7
sourcefn set_status_iochk_nmi_source(&mut self, value: bool)
fn set_status_iochk_nmi_source(&mut self, value: bool)
Not important, must be 0 on write
Bits: 6..7
const STATUS_SERR_NMI_SOURCE_BITS: usize = 1usize
const STATUS_SERR_NMI_SOURCE_OFFSET: usize = 7usize
sourceconst fn status_serr_nmi_source(&self) -> bool
const fn status_serr_nmi_source(&self) -> bool
Not important, must be 0 on write
Bits: 7..8
sourceconst fn with_status_serr_nmi_source(self, value: bool) -> Self
const fn with_status_serr_nmi_source(self, value: bool) -> Self
Not important, must be 0 on write
Bits: 7..8
sourcefn set_status_serr_nmi_source(&mut self, value: bool)
fn set_status_serr_nmi_source(&mut self, value: bool)
Not important, must be 0 on write
Bits: 7..8