#[repr(C)]pub struct PamojaAds1115Sample {
pub raw: i16,
pub pga: u8,
pub nanovolts: i64,
pub volts: f32,
pub clipped: u8,
}Expand description
One ADS1115 conversion.
Fields§
§raw: i16The conversion register, two’s complement.
pga: u8The gain code the conversion ran at.
nanovolts: i64The voltage in nanovolts, exact in integer arithmetic.
volts: f32The voltage in volts.
clipped: u81 when the conversion sits at an end code, where the output clips for a signal past
the range, so the voltage is a bound rather than the reading.
Trait Implementations§
Source§impl Clone for PamojaAds1115Sample
impl Clone for PamojaAds1115Sample
Source§fn clone(&self) -> PamojaAds1115Sample
fn clone(&self) -> PamojaAds1115Sample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaAds1115Sample
Source§impl Debug for PamojaAds1115Sample
impl Debug for PamojaAds1115Sample
Source§impl PartialEq for PamojaAds1115Sample
impl PartialEq for PamojaAds1115Sample
impl StructuralPartialEq for PamojaAds1115Sample
Auto Trait Implementations§
impl Freeze for PamojaAds1115Sample
impl RefUnwindSafe for PamojaAds1115Sample
impl Send for PamojaAds1115Sample
impl Sync for PamojaAds1115Sample
impl Unpin for PamojaAds1115Sample
impl UnsafeUnpin for PamojaAds1115Sample
impl UnwindSafe for PamojaAds1115Sample
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