[][src]Function wpilib_sys::bindings::HAL_SetCounterSamplesToAverage

pub unsafe extern "C" fn HAL_SetCounterSamplesToAverage(
    counterHandle: HAL_CounterHandle,
    samplesToAverage: i32,
    status: *mut i32
)

Sets the Samples to Average which specifies the number of samples of the timer to average when calculating the period. Perform averaging to account for mechanical imperfections or as oversampling to increase resolution.

@param counterHandle the counter handle @param samplesToAverage The number of samples to average from 1 to 127