The DlnPlsCntGetMode() function is used to get mode and limit parameters of the specified Pulse Counter port.
DlnPlsCntGetMode()
DLN_RESULT DlnPlsCntGetMode( HDLN handle, uint8_t port, uint8_t *mode, uint32_t *limit );
A handle to the DLN-series adapter.
A number of the port.
A pointer to an unsigned 8-bit integer that receives the current mode parameter of the Pulse Counter port.
A pointer to an unsigned 32-bit integer that receives the current limit parameter of the Pulse Counter port.
The function successfully retrieved the Pulse counter port configuration.
The port number is not valid. Use the DlnPlsCntGetPortCount() function to find the maximum possible port number.
The DlnPlsCntGetMode() function is defined in the dln_pls_cnt.h file.
dln_pls_cnt.h