eth32_get_counter_state

int eth32_get_counter_state(eth32 handle, int counter, int *state);

Summary

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.

Parameters

  • 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.

Return Value

This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.

See Also

eth32_get_counter_rollover, eth32_get_counter_value, eth32_set_counter_state, eth32_set_counter_value