[−][src]Struct lpc81x_pac::cmp::ctrl::W
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
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