Function to_volts
Source pub fn to_volts(pga: Pga, raw: i16) -> f32
Expand description
Converts a raw conversion result to volts at the selected full-scale range.
§Arguments
pga - the gain the conversion was taken at.
raw - the signed conversion register value.
§Returns
The measured voltage in volts.