pub struct Unit { /* private fields */ }
Implementations§
source§impl Unit
impl Unit
pub fn configure(&mut self, config: Config) -> Result<(), Error>
pub fn get_channel(&self, number: Number) -> Channel
pub fn clear(&self)
sourcepub fn get_events(&self) -> Events
pub fn get_events(&self) -> Events
Get the latest events for this unit.
sourcepub fn get_zero_mode(&self) -> ZeroMode
pub fn get_zero_mode(&self) -> ZeroMode
Get the mode of the last zero crossing
sourcepub fn unlisten(&self, _cs: CriticalSection<'_>)
pub fn unlisten(&self, _cs: CriticalSection<'_>)
Disable interrupts for this unit.
sourcepub fn interrupt_set(&self) -> bool
pub fn interrupt_set(&self) -> bool
Returns true if an interrupt is active for this unit.
sourcepub fn reset_interrupt(&self)
pub fn reset_interrupt(&self)
Clear the interrupt bit for this unit.
Auto Trait Implementations§
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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