Skip to main content

Module unit

Module unit 

Source
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.
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.