pub unsafe extern "C" fn adi_potentiometer_get_angle(
potentiometer: adi_potentiometer_t,
) -> c_doubleExpand description
Gets the current potentiometer angle in tenths of a degree.
The original potentiometer rotates 250 degrees thus returning an angle between 0-250 degrees. Potentiometer V2 rotates 330 degrees thus returning an angle between 0-330 degrees.
This function uses the following values of errno when an error state is reached: ENXIO - The given value is not within the range of ADI Ports EADDRINUSE - The port is not configured as a potentiometer
\param potentiometer The adi_potentiometer_t object for which the angle will be returned
\return The potentiometer angle in degrees.