pub struct ControlStatus1 { /* private fields */ }Expand description
Control and status register 1. Controls clock operation, test modes, and power-on reset override.
Implementations§
Source§impl ControlStatus1
impl ControlStatus1
Sourcepub fn test1(&self) -> bool
pub fn test1(&self) -> bool
Read the test1 field of the register.
EXT_CLK test mode.
- false (0): Normal mode (default)
- true (1): EXT_CLK test mode - CLKOUT becomes input for external clock
Sourcepub fn stop(&self) -> bool
pub fn stop(&self) -> bool
Read the stop field of the register.
RTC clock stop control.
- false (0): RTC source clock runs
- true (1): RTC clock stopped, all divider flip-flops reset to 0 (CLKOUT at 32.768kHz still available)
Sourcepub fn testc(&self) -> bool
pub fn testc(&self) -> bool
Read the testc field of the register.
Power-On Reset (POR) override facility.
- false (0): POR override disabled (normal operation)
- true (1): POR override may be enabled
Sourcepub fn set_test1(&mut self, value: bool)
pub fn set_test1(&mut self, value: bool)
Write the test1 field of the register.
EXT_CLK test mode.
- false (0): Normal mode (default)
- true (1): EXT_CLK test mode - CLKOUT becomes input for external clock
Trait Implementations§
Source§impl BitAnd for ControlStatus1
impl BitAnd for ControlStatus1
Source§impl BitAndAssign for ControlStatus1
impl BitAndAssign for ControlStatus1
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for ControlStatus1
impl BitOr for ControlStatus1
Source§impl BitOrAssign for ControlStatus1
impl BitOrAssign for ControlStatus1
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for ControlStatus1
impl BitXor for ControlStatus1
Source§impl BitXorAssign for ControlStatus1
impl BitXorAssign for ControlStatus1
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for ControlStatus1
impl Clone for ControlStatus1
Source§fn clone(&self) -> ControlStatus1
fn clone(&self) -> ControlStatus1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlStatus1
impl Debug for ControlStatus1
Source§impl From<ControlStatus1> for [u8; 1]
impl From<ControlStatus1> for [u8; 1]
Source§fn from(val: ControlStatus1) -> Self
fn from(val: ControlStatus1) -> Self
Converts to this type from the input type.
Source§impl From<ControlStatus1> for FieldSetValue
impl From<ControlStatus1> for FieldSetValue
Source§fn from(val: ControlStatus1) -> Self
fn from(val: ControlStatus1) -> Self
Converts to this type from the input type.
Source§impl Not for ControlStatus1
impl Not for ControlStatus1
Source§impl PartialEq for ControlStatus1
impl PartialEq for ControlStatus1
impl Copy for ControlStatus1
impl Eq for ControlStatus1
impl StructuralPartialEq for ControlStatus1
Auto Trait Implementations§
impl Freeze for ControlStatus1
impl RefUnwindSafe for ControlStatus1
impl Send for ControlStatus1
impl Sync for ControlStatus1
impl Unpin for ControlStatus1
impl UnsafeUnpin for ControlStatus1
impl UnwindSafe for ControlStatus1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more