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

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub fn reset_value() -> W[src]

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self[src]

Writes raw bits to the register

pub fn edgesel(&mut self) -> _EDGESELW[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(&mut self) -> _COMPSAW[src]

Bit 6 - Comparator output control

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

Bits 8:10 - Selects positive voltage input

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

Bits 11:13 - Selects negative voltage input

pub fn edgeclr(&mut self) -> _EDGECLRW[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(&mut self) -> _COMPSTATW[src]

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

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

Bit 23 - Comparator edge-detect status.

pub fn hys(&mut self) -> _HYSW[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 W

impl Sync for W

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