Interface for reading barometric sensor measurements. More...
Public Member Functions | |
| None | start (self) |
| Initialize the sensor and prepare it for use. | |
| None | stop (self) |
| Release resources owned by the sensor. | |
| bool | is_started (self) |
| Return whether the sensor has been initialized. | |
| float | get_pressure_pa (self) |
| Read atmospheric pressure. | |
| float | get_temperature_c (self) |
| Read sensor temperature. | |
Interface for reading barometric sensor measurements.
Implementations provide raw or device-compensated measurements directly from barometric sensor hardware. Higher-level calculations such as altitude, pressure trends, and weather interpretation belong outside the hardware layer.
| float hardware_io.environmental.barometric_sensor_if.BarometricSensorIf.get_pressure_pa | ( | self | ) |
Read atmospheric pressure.
Reimplemented in hardware_io.environmental.bmp3xx.Bmp3xx.
| float hardware_io.environmental.barometric_sensor_if.BarometricSensorIf.get_temperature_c | ( | self | ) |
Read sensor temperature.
Reimplemented in hardware_io.environmental.bmp3xx.Bmp3xx.
| bool hardware_io.environmental.barometric_sensor_if.BarometricSensorIf.is_started | ( | self | ) |
Return whether the sensor has been initialized.
| True | The sensor is initialized and readable. |
| False | The sensor has not been started. |
Reimplemented in hardware_io.environmental.bmp3xx.Bmp3xx.