pub struct Acifc<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Acifc<'a>
Implement constructor for struct Acifc
impl<'a> Acifc<'a>
Implement constructor for struct Acifc
pub const fn new() -> Acifc<'a>
Sourcepub fn handle_interrupt(&self)
pub fn handle_interrupt(&self)
Handling of interrupts. Currently set up so that an interrupt fires only once when the condition is true (e.g. Vinp > Vinn), and then doesn’t fire anymore until the condition is false (e.g. Vinp < Vinn). This way we won’t get a barrage of interrupts as soon as Vinp > Vinn: we’ll get just one.
Trait Implementations§
Source§impl<'a> AnalogComparator<'a> for Acifc<'a>
impl<'a> AnalogComparator<'a> for Acifc<'a>
Source§fn comparison(&self, channel: &Self::Channel) -> bool
fn comparison(&self, channel: &Self::Channel) -> bool
Do a single comparison
Source§fn start_comparing(&self, channel: &Self::Channel) -> Result<(), ErrorCode>
fn start_comparing(&self, channel: &Self::Channel) -> Result<(), ErrorCode>
Start interrupt-based comparisons
Source§fn stop_comparing(&self, channel: &Self::Channel) -> Result<(), ErrorCode>
fn stop_comparing(&self, channel: &Self::Channel) -> Result<(), ErrorCode>
Stop interrupt-based comparisons
fn set_client(&self, client: &'a dyn Client)
Auto Trait Implementations§
impl<'a> !Freeze for Acifc<'a>
impl<'a> !RefUnwindSafe for Acifc<'a>
impl<'a> !Send for Acifc<'a>
impl<'a> !Sync for Acifc<'a>
impl<'a> Unpin for Acifc<'a>
impl<'a> !UnwindSafe for Acifc<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more