[−][src]Struct lpc81x_pac::cmp::ctrl::R
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
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self