Count Match

The counter board has functions for generating interrupts, and sending an external output pulse when the count value matches a specified compare value.

This compare function is called the Count Match.

The counter board has a comparison register that stores the comparison value for count comparison.
For the devices with high-performance counter, the number of comparison registers is 2 for each channel.
For other devices, the number of comparison registers is 1 for each channel.

The value of compare register is set by the function CntSetCountMatchEvent.

Specify the callback function when the count match is notified to the application.
When the notification is unnecessary, or count-match processing is only processed in the user interrupt processing routine of the driver, callback setting isn't necessary.