Skip to main content

Module unit

Module unit 

Source
Expand description

§PCNT - Unit Module

§Overview

The unit module configures and operates a single pulse-counter unit. Construct a Unit from a PCNTn_UNITm singleton. Units can be paused, resumed, and cleared, and can listen for threshold and limit events.

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.