[−][src]Function wpilib_sys::bindings::HAL_GetAnalogValue
pub unsafe extern "C" fn HAL_GetAnalogValue(
analogPortHandle: HAL_AnalogInputHandle,
status: *mut i32
) -> i32
Gets a sample straight from the channel on this module.
The sample is a 12-bit value representing the 0V to 5V range of the A/D converter in the module. The units are in A/D converter codes. Use GetVoltage() to get the analog value in calibrated units.
@param analogPortHandle Handle to the analog port to use. @return A sample straight from the channel on this module.