[][src]Function wpilib_sys::bindings::HAL_GetAnalogVoltsToValue

pub unsafe extern "C" fn HAL_GetAnalogVoltsToValue(
    analogPortHandle: HAL_AnalogInputHandle,
    voltage: f64,
    status: *mut i32
) -> i32

Converts a voltage to a raw value for a specified channel.

This process depends on the calibration of each channel, so the channel must be specified.

@todo This assumes raw values. Oversampling not supported as is.

@param analogPortHandle Handle to the analog port to use. @param voltage The voltage to convert. @return The raw value for the channel.