#[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
const ENABLE_SPEAKER_DATA_BITS: usize = 1usize
const ENABLE_SPEAKER_DATA_OFFSET: usize = 1usize
const REFRESH_CYCLE_TOGGLE_BITS: usize = 1usize
const REFRESH_CYCLE_TOGGLE_OFFSET: usize = 4usize
const STATUS_TIMER_COUNTER2_BITS: usize = 1usize
const STATUS_TIMER_COUNTER2_OFFSET: usize = 5usize
const STATUS_IOCHK_NMI_SOURCE_BITS: usize = 1usize
const STATUS_IOCHK_NMI_SOURCE_OFFSET: usize = 6usize
const STATUS_SERR_NMI_SOURCE_BITS: usize = 1usize
const STATUS_SERR_NMI_SOURCE_OFFSET: usize = 7usize
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_checked(
self,
value: bool,
) -> Result<Self, ()>
const fn with_enable_timer_counter2_checked( self, value: bool, ) -> Result<Self, ()>
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
sourcefn set_enable_timer_counter2_checked(&mut self, value: bool) -> Result<(), ()>
fn set_enable_timer_counter2_checked(&mut self, value: bool) -> Result<(), ()>
Enable the timer
Bits: 0..1
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_checked(self, value: bool) -> Result<Self, ()>
const fn with_enable_speaker_data_checked(self, value: bool) -> Result<Self, ()>
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
sourcefn set_enable_speaker_data_checked(&mut self, value: bool) -> Result<(), ()>
fn set_enable_speaker_data_checked(&mut self, value: bool) -> Result<(), ()>
If set, speaker output is equal to status_timer_counter2
Bits: 1..2
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_checked(
self,
value: bool,
) -> Result<Self, ()>
const fn with_refresh_cycle_toggle_checked( self, value: bool, ) -> Result<Self, ()>
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
sourcefn set_refresh_cycle_toggle_checked(&mut self, value: bool) -> Result<(), ()>
fn set_refresh_cycle_toggle_checked(&mut self, value: bool) -> Result<(), ()>
Must be zero on write
Bits: 4..5
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_checked(
self,
value: bool,
) -> Result<Self, ()>
const fn with_status_timer_counter2_checked( self, value: bool, ) -> Result<Self, ()>
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
sourcefn set_status_timer_counter2_checked(&mut self, value: bool) -> Result<(), ()>
fn set_status_timer_counter2_checked(&mut self, value: bool) -> Result<(), ()>
Will be set on timer expiration; must be 0 on write
Bits: 5..6
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_checked(
self,
value: bool,
) -> Result<Self, ()>
const fn with_status_iochk_nmi_source_checked( self, value: bool, ) -> Result<Self, ()>
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
sourcefn set_status_iochk_nmi_source_checked(&mut self, value: bool) -> Result<(), ()>
fn set_status_iochk_nmi_source_checked(&mut self, value: bool) -> Result<(), ()>
Not important, must be 0 on write
Bits: 6..7
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_checked(
self,
value: bool,
) -> Result<Self, ()>
const fn with_status_serr_nmi_source_checked( self, value: bool, ) -> Result<Self, ()>
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
sourcefn set_status_serr_nmi_source_checked(&mut self, value: bool) -> Result<(), ()>
fn set_status_serr_nmi_source_checked(&mut self, value: bool) -> Result<(), ()>
Not important, must be 0 on write
Bits: 7..8
Trait Implementations§
impl Copy for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)