eth32_get_analog_reference

int eth32_get_analog_reference(eth32 handle, int *reference);

Summary

This function retrieves the current analog voltage reference setting from the device. Please see the eth32_set_analog_reference function for further description of the voltage reference setting and its possible values.

Parameters

  • handle - The value returned by the eth32_open function.

  • reference - Pointer to a variable which will receive the voltage reference setting code (one of the REF_ constants)

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_analog_state, eth32_input_analog, eth32_set_analog_reference