pub enum InterruptControl {
SquareWave = 0,
Interrupt = 1,
}
Expand description
Interrupt control mode for the DS3231.
Variants§
SquareWave = 0
Output square wave on INT/SQW pin
Interrupt = 1
Output interrupt signal on INT/SQW pin
Trait Implementations§
Source§impl Clone for InterruptControl
impl Clone for InterruptControl
Source§fn clone(&self) -> InterruptControl
fn clone(&self) -> InterruptControl
Returns a copy 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 InterruptControl
impl Debug for InterruptControl
Source§impl From<InterruptControl> for u8
impl From<InterruptControl> for u8
Source§fn from(v: InterruptControl) -> Self
fn from(v: InterruptControl) -> Self
Converts an InterruptControl
to its raw register value.
Source§impl From<u8> for InterruptControl
impl From<u8> for InterruptControl
Source§impl PartialEq for InterruptControl
impl PartialEq for InterruptControl
impl Copy for InterruptControl
impl StructuralPartialEq for InterruptControl
Auto Trait Implementations§
impl Freeze for InterruptControl
impl RefUnwindSafe for InterruptControl
impl Send for InterruptControl
impl Sync for InterruptControl
impl Unpin for InterruptControl
impl UnwindSafe for InterruptControl
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