int eth32_get_analog_state(eth32 handle, int *state);
This function retrieves the status of the device's Analog to Digital Converter (ADC) to determine whether it is currently enabled or disabled.
handle - The value returned by the eth32_open function.
state - Pointer to a variable which will receive the status of the ADC. This will be ADC_DISABLED (0) or ADC_ENABLED (1).
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes.
eth32 handle; int result; int adc_state; // .... Your code that establishes a connection here result = eth32_get_analog_state(handle, &adc_state); if(result) { // Handle error } if(adc_state==ADC_ENABLED) { // ADC is enabled } else { // ADC is disabled }