Struct nrf52832_hal::pac::comp::RegisterBlock
source · [−]pub struct RegisterBlock {Show 20 fields
pub tasks_start: Reg<TASKS_START_SPEC>,
pub tasks_stop: Reg<TASKS_STOP_SPEC>,
pub tasks_sample: Reg<TASKS_SAMPLE_SPEC>,
pub events_ready: Reg<EVENTS_READY_SPEC>,
pub events_down: Reg<EVENTS_DOWN_SPEC>,
pub events_up: Reg<EVENTS_UP_SPEC>,
pub events_cross: Reg<EVENTS_CROSS_SPEC>,
pub shorts: Reg<SHORTS_SPEC>,
pub inten: Reg<INTEN_SPEC>,
pub intenset: Reg<INTENSET_SPEC>,
pub intenclr: Reg<INTENCLR_SPEC>,
pub result: Reg<RESULT_SPEC>,
pub enable: Reg<ENABLE_SPEC>,
pub psel: Reg<PSEL_SPEC>,
pub refsel: Reg<REFSEL_SPEC>,
pub extrefsel: Reg<EXTREFSEL_SPEC>,
pub th: Reg<TH_SPEC>,
pub mode: Reg<MODE_SPEC>,
pub hyst: Reg<HYST_SPEC>,
pub isource: Reg<ISOURCE_SPEC>,
/* private fields */
}
Expand description
Register block
Fields
tasks_start: Reg<TASKS_START_SPEC>
0x00 - Start comparator
tasks_stop: Reg<TASKS_STOP_SPEC>
0x04 - Stop comparator
tasks_sample: Reg<TASKS_SAMPLE_SPEC>
0x08 - Sample comparator value
events_ready: Reg<EVENTS_READY_SPEC>
0x100 - COMP is ready and output is valid
events_down: Reg<EVENTS_DOWN_SPEC>
0x104 - Downward crossing
events_up: Reg<EVENTS_UP_SPEC>
0x108 - Upward crossing
events_cross: Reg<EVENTS_CROSS_SPEC>
0x10c - Downward or upward crossing
shorts: Reg<SHORTS_SPEC>
0x200 - Shortcut register
inten: Reg<INTEN_SPEC>
0x300 - Enable or disable interrupt
intenset: Reg<INTENSET_SPEC>
0x304 - Enable interrupt
intenclr: Reg<INTENCLR_SPEC>
0x308 - Disable interrupt
result: Reg<RESULT_SPEC>
0x400 - Compare result
enable: Reg<ENABLE_SPEC>
0x500 - COMP enable
psel: Reg<PSEL_SPEC>
0x504 - Pin select
refsel: Reg<REFSEL_SPEC>
0x508 - Reference source select for single-ended mode
extrefsel: Reg<EXTREFSEL_SPEC>
0x50c - External reference select
th: Reg<TH_SPEC>
0x530 - Threshold configuration for hysteresis unit
mode: Reg<MODE_SPEC>
0x534 - Mode configuration
hyst: Reg<HYST_SPEC>
0x538 - Comparator hysteresis enable
isource: Reg<ISOURCE_SPEC>
0x53c - Current source select on analog input
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
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
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
sourcefn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourceimpl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
sourcefn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.