Module unit

Source
Available on crate feature unstable only.
Expand description

§PCNT - Unit Module

§Overview

The unit module is responsible for configuring and handling individual units of the PCNT peripheral. Each unit represents a separate instance of the PCNT module, identified by unit numbers like Unit0, Unit1, and so on. Users can interact with these units to configure settings such as low and high limits, thresholds, and optional filtering. The unit module also enables users to pause, resume, and clear the counter, as well as enable or disable interrupts for specific events associated with the unit.

Structs§

Counter
Represents the counter within a pulse counter unit.
Events
Events that can occur in a pulse counter unit.
InvalidFilterThreshold
Invalid filter threshold value
InvalidHighLimit
Invalid high limit - must be > 0
InvalidLowLimit
Invalid low limit - must be < 0
Unit
Represents a pulse counter unit.

Enums§

ZeroMode
the current status of the counter.