Struct esp32c6_hal::pcnt::unit::Unit
source · 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 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.