Struct VoltageResult
pub struct VoltageResult {
pub physical: i64,
pub raw: i32,
}Expand description
Represent the result of the QPNP ADC.
See: struct qpnp_vadc_result in linux/qpnp/qpnp-adc.h.
Fields§
§physical: i64The data meaningful for each individual channel whether it is voltage, current, temperature, etc.
- All voltage units are represented in micro volts.
- Battery temperature units are represented as 0.1 DegC.
- PA Therm temperature units are represented as DegC.
- PMIC Die temperature units are represented as 0.001 DegC.
raw: i32The pre-calibrated digital output of a given ADC relative to the ADC reference.
Trait Implementations§
§impl Clone for VoltageResult
impl Clone for VoltageResult
§fn clone(&self) -> VoltageResult
fn clone(&self) -> VoltageResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for VoltageResult
impl Debug for VoltageResult
Auto Trait Implementations§
impl Freeze for VoltageResult
impl RefUnwindSafe for VoltageResult
impl Send for VoltageResult
impl Sync for VoltageResult
impl Unpin for VoltageResult
impl UnwindSafe for VoltageResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more