#[repr(C)]pub struct PamojaTmp117Config {
pub high_alert: u8,
pub low_alert: u8,
pub data_ready: u8,
pub eeprom_busy: u8,
pub mode: u8,
pub cycle: u8,
pub averaging: u8,
pub therm_mode: u8,
pub alert_active_high: u8,
pub alert_pin_data_ready: u8,
pub soft_reset: u8,
}Expand description
A TMP117 configuration register, field by field.
Fields§
§high_alert: u81 when a result went above the high limit.
low_alert: u81 when a result went below the low limit.
data_ready: u81 when a conversion has completed since the register was last read.
eeprom_busy: u81 while an EEPROM write is still in progress.
mode: u8The conversion-mode code: 0 continuous, 1 shutdown, 3 one-shot.
cycle: u8The conversion-cycle code, 0..=7.
averaging: u8The averaging code, 0..=3.
therm_mode: u81 makes the limits a therm hysteresis band rather than alerts.
alert_active_high: u81 makes the ALERT pin active high.
alert_pin_data_ready: u81 makes the ALERT pin reflect data ready rather than the alert flags.
soft_reset: u81 triggers a software reset when this register is written.
Trait Implementations§
Source§impl Clone for PamojaTmp117Config
impl Clone for PamojaTmp117Config
Source§fn clone(&self) -> PamojaTmp117Config
fn clone(&self) -> PamojaTmp117Config
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 PamojaTmp117Config
Source§impl Debug for PamojaTmp117Config
impl Debug for PamojaTmp117Config
impl Eq for PamojaTmp117Config
Source§impl From<Configuration> for PamojaTmp117Config
impl From<Configuration> for PamojaTmp117Config
Source§impl From<PamojaTmp117Config> for Configuration
impl From<PamojaTmp117Config> for Configuration
Source§fn from(value: PamojaTmp117Config) -> Self
fn from(value: PamojaTmp117Config) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaTmp117Config
impl PartialEq for PamojaTmp117Config
Source§fn eq(&self, other: &PamojaTmp117Config) -> bool
fn eq(&self, other: &PamojaTmp117Config) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaTmp117Config
Auto Trait Implementations§
impl Freeze for PamojaTmp117Config
impl RefUnwindSafe for PamojaTmp117Config
impl Send for PamojaTmp117Config
impl Sync for PamojaTmp117Config
impl Unpin for PamojaTmp117Config
impl UnsafeUnpin for PamojaTmp117Config
impl UnwindSafe for PamojaTmp117Config
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