You are here

Pulse Counter Interface

Pulse counter interface allows to count with pulses and set timers.

To start using Pulse counter module you need to enable Pulse counter port. It can be done with the DlnPlsCntEnable() function. Also pulse counter module mode need to be set with DlnPlsCntSetMode() function.

At any moment pulse counter or timer value can be read with function DlnPlsCntGetValue().

You can also enable the events to get alert when condition is met. One of the few conditions can be selected: pulse counter/timer overflow, when it matches selected value or repeat event for selected period. Use DlnPlsCntSetEventCfg() to setup events.

Average: 3 (2 votes)

User login