All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- MULTIBYTE read implemented directly in
interface/i2c.rs
instead of specific functions insensor.rs
- SPI interface temporarily disabled, trying to figure out how to get MS_BIT to work
- enable_interrupts() becomes configure_interrupts(), and the flag becomes a field of the configuration stuct (enable_differential)
- enums used for interrupt pin configuration (active high/low and push-pull/open drain)
- enums used for interrupt and data ready signals configuration (enabled/disabled)
- get_data_status() reads all the flags in one go ()
- get_int_status() reads all the flags in one go ()
- get_fifo_status() reads all the flags in one go ()
- FIFO enabled/disabled with new FIFO_ON enum
- enable_fifo() renamed to configure_fifo() for consistency with configure_interrupts() naming
- read_pressure() and read_temperature() are independent, this way STATUS_REG is only affected for the parameter actually read (pressure or temperature, not both at once)
0.1.0 - 2021-12-08
- interrupt configuration struct
- enable_interrupts function that enables and configures the interrupt pin
- FIFO configuration struct
- enable_fifo function that enables and configures the FIFO
- interrupt status read to a struct (various flags are fields)
- data status (STATUS_REG) read to a struct (various flags are fields)
- FIFO status read to a struct (various flags and also FIFO data level are fields)
- one_shot() function in the sensor module; it sets ODR to OneShot and then enables the one shot mode
- enable_one_shot() function
- Single functions for pressure and temperature availability and overrun flag reading
0.0.4 - 2021-12-04
- reading threshold for pressure interrupt generation
- setting threshold for pressure interrupt generation
- setting pressure offset value
- added Raspberry Pi example
0.0.3 - 2021-08-16
- Reading FIFO stored data level
- Reading pressure offset value
- Bitmasks are inside a struct
- All "config/control" functions become "_enable", with a boolean parameter.
- Moved enums into lib.rs
Control
enum
0.0.2 - 2021-08-15
- Read pressure and temperature
- Power down control
- Data rate setting
- Temperature and pressure resolution setting
- Reboot and software reset functions
- Enable one-shot reading
- Enable/disable interrupts generation
- Interrupts configuration
- Signals on DRDY pin setting
- Autozero function config and reset
- SPI configuration (SPI interface not implemented yet)
- Data availability and events occurence status reading
- FIFO enabling/disabling
- FIFO configuration
- FIFO status reading
- FIFO interrupts settings
- Basic read and write functions
- Registers and bitmasks definitions
- Read device ID function
Checking if sensor is reachable (WHOAMI)Enabling single-shot data acquisitionReading pressure and temperature