int eth32_get_counter_threshold(eth32 handle, int counter, int *threshold);
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.
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.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.