int eth32_get_counter_state(eth32 handle, int counter, int *state);
This function retrieves the current state of the specified counter from the ETH32 device. See the eth32_set_counter_state function for more information about counter states.
handle - The value returned by the eth32_open function.
state - Pointer to a variable which will receive the current counter state. This will be set to one of COUNTER_DISABLED, COUNTER_FALLING, or COUNTER_RISING.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.