[][src]Function wpilib_sys::bindings::HAL_SetAnalogOversampleBits

pub unsafe extern "C" fn HAL_SetAnalogOversampleBits(
    analogPortHandle: HAL_AnalogInputHandle,
    bits: i32,
    status: *mut i32
)

Sets the number of oversample bits.

This sets the number of oversample bits. The actual number of oversampled values is 2**bits. Use oversampling to improve the resolution of your measurements at the expense of sampling rate. The oversampling is done automatically in the FPGA.

@param analogPortHandle Handle to the analog port to use. @param bits Number of bits to oversample.