The DlnPlsCntSetEventCfg() function defines the event configuration for the specified Pulse Counter port.
DlnPlsCntSetEventCfg()
DLN_RESULT DlnPlsCntSetEventCfg( HDLN handle, uint8_t port, uint8_t eventType, uint32_t repeatInterval );
A handle to the DLN-series adapter.
A number of the port.
Defines the event type parameter. There are 4 possible event types.
DLN_PLS_CNT_EVENT_NONE - 0
DLN_PLS_CNT_EVENT_OVERFLOW - 1
DLN_PLS_CNT_EVENT_MATCH - 2
DLN_PLS_CNT_EVENT_REPEAT - 4
Defines the repeat interval parameter.
The function successfully configured events for the specified port.
The port number is not valid. Use the DlnPlsCntGetPortCount() [1] function to find the maximum possible port number.
The specified event type is not valid.
The specified event period is not valid.
The DlnPlsCntSetEventCfg() function is defined in the dln_pls_cnt.h file.
dln_pls_cnt.h