eth32_get_counter_threshold

int eth32_get_counter_threshold(eth32 handle, int counter, int *threshold);

Summary

This function retrieves the currently configured event threshold for the specified counter. Only counter 0 supports an event threshold on the ETH32 device. Please see the eth32_set_counter_threshold function for more information about the counter event threshold.

Parameters

  • handle - The value returned by the eth32_open function.

  • counter - Specifies the counter number. Must be 0.

  • threshold - Pointer to a variable which will receive the currently configured event threshold on the counter.

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_state, eth32_get_counter_value, eth32_set_counter_threshold