Struct bme680::Bme680 [−][src]
#[repr(C)]pub struct Bme680<I2C, D> { /* fields omitted */ }
Driver for the BME680 environmental sensor
Implementations
impl<I2C, D> Bme680<I2C, D> where
D: DelayMs<u8>,
I2C: Read + Write,
[src]
impl<I2C, D> Bme680<I2C, D> where
D: DelayMs<u8>,
I2C: Read + Write,
[src]pub fn soft_reset(
i2c: &mut I2C,
delay: &mut D,
dev_id: I2CAddress
) -> Result<(), <I2C as Read>::Error, <I2C as Write>::Error>
[src]
i2c: &mut I2C,
delay: &mut D,
dev_id: I2CAddress
) -> Result<(), <I2C as Read>::Error, <I2C as Write>::Error>
pub fn init(
i2c: I2C,
delay: &mut D,
dev_id: I2CAddress
) -> Result<Bme680<I2C, D>, <I2C as Read>::Error, <I2C as Write>::Error>
[src]
i2c: I2C,
delay: &mut D,
dev_id: I2CAddress
) -> Result<Bme680<I2C, D>, <I2C as Read>::Error, <I2C as Write>::Error>
pub fn set_sensor_settings(
&mut self,
delay: &mut D,
settings: Settings
) -> Result<(), <I2C as Read>::Error, <I2C as Write>::Error>
[src]
pub fn set_sensor_settings(
&mut self,
delay: &mut D,
settings: Settings
) -> Result<(), <I2C as Read>::Error, <I2C as Write>::Error>
[src]Set the settings to be used during the sensor measurements
pub fn get_sensor_settings(
&mut self,
desired_settings: DesiredSensorSettings
) -> Result<SensorSettings, <I2C as Read>::Error, <I2C as Write>::Error>
[src]
pub fn get_sensor_settings(
&mut self,
desired_settings: DesiredSensorSettings
) -> Result<SensorSettings, <I2C as Read>::Error, <I2C as Write>::Error>
[src]Retrieve settings from sensor registers
Arguments
desired_settings
- Settings to be retrieved. Setting values may stayNone
if not retrieved.
pub fn set_sensor_mode(
&mut self,
delay: &mut D,
target_power_mode: PowerMode
) -> Result<(), <I2C as Read>::Error, <I2C as Write>::Error>
[src]
pub fn set_sensor_mode(
&mut self,
delay: &mut D,
target_power_mode: PowerMode
) -> Result<(), <I2C as Read>::Error, <I2C as Write>::Error>
[src]pub fn get_sensor_mode(
&mut self
) -> Result<PowerMode, <I2C as Read>::Error, <I2C as Write>::Error>
[src]
pub fn get_sensor_mode(
&mut self
) -> Result<PowerMode, <I2C as Read>::Error, <I2C as Write>::Error>
[src]Retrieve current sensor power mode via registers
pub fn bme680_set_profile_dur(&mut self, tph_sett: TphSett, duration: Duration)
[src]
pub fn get_profile_dur(
&self,
sensor_settings: &SensorSettings
) -> Result<Duration, <I2C as Read>::Error, <I2C as Write>::Error>
[src]
&self,
sensor_settings: &SensorSettings
) -> Result<Duration, <I2C as Read>::Error, <I2C as Write>::Error>
Auto Trait Implementations
impl<I2C, D> RefUnwindSafe for Bme680<I2C, D> where
D: RefUnwindSafe,
I2C: RefUnwindSafe,
D: RefUnwindSafe,
I2C: RefUnwindSafe,
impl<I2C, D> Send for Bme680<I2C, D> where
D: Send,
I2C: Send,
D: Send,
I2C: Send,
impl<I2C, D> Sync for Bme680<I2C, D> where
D: Sync,
I2C: Sync,
D: Sync,
I2C: Sync,
impl<I2C, D> Unpin for Bme680<I2C, D> where
D: Unpin,
I2C: Unpin,
D: Unpin,
I2C: Unpin,
impl<I2C, D> UnwindSafe for Bme680<I2C, D> where
D: UnwindSafe,
I2C: UnwindSafe,
D: UnwindSafe,
I2C: UnwindSafe,