Struct bme68x_rust::Device
source · [−]#[repr(C)]pub struct Device<I: Interface> {
pub intf: I,
pub chip_id: u8,
pub variant_id: u32,
pub mem_page: u8,
pub amb_temp: i8,
pub calib: CalibrationData,
pub intf_rslt: i8,
pub info_msg: u8,
}Fields
intf: Ichip_id: u8variant_id: u32mem_page: u8amb_temp: i8calib: CalibrationDataintf_rslt: i8info_msg: u8Implementations
sourceimpl<I: Interface> Device<I>
impl<I: Interface> Device<I>
pub fn set_op_mode(&mut self, op_mode: u8) -> Result<(), Error>
pub fn get_op_mode(&mut self, op_mode: *mut u8) -> Result<(), Error>
pub fn get_meas_dur(&mut self, op_mode: u8, conf: *mut DeviceConf) -> u32
pub fn get_data(
&mut self,
op_mode: u8,
data: *mut SensorData,
n_data: *mut u8
) -> Result<(), Error>
pub fn set_heatr_conf(
&mut self,
op_mode: u8,
conf: *const HeaterConf
) -> Result<(), Error>
Trait Implementations
impl<I: Copy + Interface> Copy for Device<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for Device<I> where
I: RefUnwindSafe,
impl<I> Send for Device<I> where
I: Send,
impl<I> Sync for Device<I> where
I: Sync,
impl<I> Unpin for Device<I> where
I: Unpin,
impl<I> UnwindSafe for Device<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more