pub struct Pcnt<'d> {
pub unit0: Unit<'d, 0>,
pub unit1: Unit<'d, 1>,
pub unit2: Unit<'d, 2>,
pub unit3: Unit<'d, 3>,
/* private fields */
}
Available on crate feature
unstable
only.Expand description
Pulse Counter (PCNT) peripheral driver.
Fields§
§unit0: Unit<'d, 0>
Unit 0
unit1: Unit<'d, 1>
Unit 1
unit2: Unit<'d, 2>
Unit 2
unit3: Unit<'d, 3>
Unit 3
Implementations§
Source§impl<'d> Pcnt<'d>
impl<'d> Pcnt<'d>
Sourcepub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
pub fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Set the interrupt handler for the PCNT peripheral.
Note that this will replace any previously registered interrupt handlers.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl InterruptConfigurable for Pcnt<'_>
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
impl InterruptConfigurable for Pcnt<'_>
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Source§fn set_interrupt_handler(&mut self, handler: InterruptHandler)
fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Registers an interrupt handler for the peripheral on the current core. Read more