[−][src]Function wpilib_sys::bindings::HAL_SetAnalogAverageBits
pub unsafe extern "C" fn HAL_SetAnalogAverageBits(
analogPortHandle: HAL_AnalogInputHandle,
bits: i32,
status: *mut i32
)
Sets the number of averaging bits.
This sets the number of averaging bits. The actual number of averaged samples is 2**bits. Use averaging to improve the stability of your measurement at the expense of sampling rate. The averaging is done automatically in the FPGA.
@param analogPortHandle Handle to the analog port to configure. @param bits Number of bits to average.