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. Units can be configured with settings such as low and high limits,
thresholds, and optional filtering. The unit module also supports pausing,
resuming, and clearing the counter, as well as enabling or disabling
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.
- Invalid
Filter Threshold - Invalid filter threshold value
- Invalid
High Limit - Invalid high limit - must be > 0.
- Invalid
LowLimit - Invalid low limit - must be < 0.
- Unit
- Represents a pulse counter unit.
Enums§
- Zero
Mode - the current status of the counter.