Struct ms5611::Ms5611 [−][src]
pub struct Ms5611 { /* fields omitted */ }
Pressure sensor
Methods
impl Ms5611
[src]
impl Ms5611
pub fn new(i2c_bus: i32, i2c_addr: Option<u16>) -> Result<Ms5611, LinuxI2CError>
[src]
pub fn new(i2c_bus: i32, i2c_addr: Option<u16>) -> Result<Ms5611, LinuxI2CError>
If i2c_addr is unspecified, 0x77 is used. The addr of the device is 0x77 if CSB is low / 0x76 if CSB is high.
pub fn reset(&mut self) -> Result<(), LinuxI2CError>
[src]
pub fn reset(&mut self) -> Result<(), LinuxI2CError>
Triggers a hardware reset of the device.
pub fn read_sample(&mut self, osr: Osr) -> Result<Ms5611Sample, LinuxI2CError>
[src]
pub fn read_sample(&mut self, osr: Osr) -> Result<Ms5611Sample, LinuxI2CError>
Based on oversampling ratio, function may block between 1ms (OSR=256) to 18ms (OSR=4096). To avoid blocking, consider invoking this function in a separate thread.