Enum nrf52840_hal::target::lpcomp::extrefsel::EXTREFSELR
source · pub enum EXTREFSELR {
ANALOGREFERENCE0,
ANALOGREFERENCE1,
}
Expand description
Possible values of the field EXTREFSEL
Variants
ANALOGREFERENCE0
Use AIN0 as external analog reference
ANALOGREFERENCE1
Use AIN1 as external analog reference
Implementations
sourceimpl EXTREFSELR
impl EXTREFSELR
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0)
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1)
sourcepub fn is_analog_reference0(&self) -> bool
pub fn is_analog_reference0(&self) -> bool
Checks if the value of the field is ANALOGREFERENCE0
sourcepub fn is_analog_reference1(&self) -> bool
pub fn is_analog_reference1(&self) -> bool
Checks if the value of the field is ANALOGREFERENCE1
Trait Implementations
sourceimpl Clone for EXTREFSELR
impl Clone for EXTREFSELR
sourcefn clone(&self) -> EXTREFSELR
fn clone(&self) -> EXTREFSELR
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EXTREFSELR
impl Debug for EXTREFSELR
sourceimpl PartialEq<EXTREFSELR> for EXTREFSELR
impl PartialEq<EXTREFSELR> for EXTREFSELR
sourcefn eq(&self, other: &EXTREFSELR) -> bool
fn eq(&self, other: &EXTREFSELR) -> bool
impl Copy for EXTREFSELR
impl StructuralPartialEq for EXTREFSELR
Auto Trait Implementations
impl RefUnwindSafe for EXTREFSELR
impl Send for EXTREFSELR
impl Sync for EXTREFSELR
impl Unpin for EXTREFSELR
impl UnwindSafe for EXTREFSELR
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more