[−][src]Function wpilib_sys::bindings::HAL_GetAnalogAverageValue
pub unsafe extern "C" fn HAL_GetAnalogAverageValue(
analogPortHandle: HAL_AnalogInputHandle,
status: *mut i32
) -> i32
Gets a sample from the output of the oversample and average engine for the channel.
The sample is 12-bit + the value configured in SetOversampleBits(). The value configured in SetAverageBits() will cause this value to be averaged 2bits number of samples. This is not a sliding window. The sample will not change until 2(OversamplBits + AverageBits) samples have been acquired from the module on this channel. Use GetAverageVoltage() to get the analog value in calibrated units.
@param analogPortHandle Handle to the analog port to use. @return A sample from the oversample and average engine for the channel.