[][src]Struct lpc81x_pac::cmp::ctrl::R

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R[src]

pub fn bits(&self) -> u32[src]

Value of the register as raw bits

pub fn edgesel(&self) -> EDGESELR[src]

Bits 3:4 - This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below): 00 = Falling edges 01 = Rising edges 1x = Both edges

pub fn compsa(&self) -> COMPSAR[src]

Bit 6 - Comparator output control

pub fn comp_vp_sel(&self) -> COMP_VP_SELR[src]

Bits 8:10 - Selects positive voltage input

pub fn comp_vm_sel(&self) -> COMP_VM_SELR[src]

Bits 11:13 - Selects negative voltage input

pub fn edgeclr(&self) -> EDGECLRR[src]

Bit 20 - Interrupt clear bit. To clear the COMPEDGE bit and thus negate the interrupt request, toggle the EDGECLR bit by first writing a 1 and then a 0.

pub fn compstat(&self) -> COMPSTATR[src]

Bit 21 - Comparator status. This bit reflects the state of the comparator output.

pub fn compedge(&self) -> COMPEDGER[src]

Bit 23 - Comparator edge-detect status.

pub fn hys(&self) -> HYSR[src]

Bits 25:26 - Controls the hysteresis of the comparator. When the comparator is outputting a certain state, this is the difference between the selected signals, in the opposite direction from the state being output, that will switch the output.

Auto Trait Implementations

impl Send for R

impl Sync for R

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self