int eth32_get_counter_value(eth32 handle, int counter, int *value);
This function retrieves the current value of the specified counter. After you have enabled the counter with the eth32_set_counter_state function, the value of the counter indicates how many times the counter has been incremented by the external counter input.
handle - The value returned by the eth32_open function.
counter - Specifies the counter number (0 or 1).
value - Pointer to a variable which will receive the current value of the specified counter. For counter 0 (a 16-bit counter), this may range from 0-65535. For counter 1 (an 8-bit counter), this may range from 0-255.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.