Trait bme68x_rust::Interface
source · [−]pub trait Interface {
fn interface_type(&self) -> CommInterface;
fn read(&self, _reg_addr: u8, _reg_data: &mut [u8]) -> Result<(), Error> { ... }
unsafe fn read_raw(&self, reg_addr: u8, reg_data: *mut u8, len: u32) -> i8 { ... }
fn write(&self, _reg_addr: u8, _reg_data: &[u8]) -> Result<(), Error> { ... }
unsafe fn write_raw(&self, reg_addr: u8, reg_data: *const u8, len: u32) -> i8 { ... }
fn delay(&self, _us: u32) { ... }
}Required Methods
fn interface_type(&self) -> CommInterface
fn interface_type(&self) -> CommInterface
Communication to the bme68x device occurs over SPI or I2C.
Provided Methods
Function for reading the sensor’s registers through SPI bus.
Function for writing the sensor’s registers through SPI bus.