Air pressure sensor#

Air pressure sensor driver abstraction designed for Thunderboard.

Functions#

sl_status_t
sl_status_t
sl_sensor_pressure_get(float *pressure)

Function Documentation#

sl_sensor_pressure_init#

sl_status_t sl_sensor_pressure_init (void)
Parameters
N/A

Initialize pressure sensor.

Note

  • With certain boards (e.g. 4166A), using this initialization function enables other sensors, because they're on the same enable pin. Please take that into account when using this function.

Returns

  • Status of the operation.


Definition at line 49 of file common/sensor_pressure/sl_sensor_pressure.h

sl_sensor_pressure_deinit#

void sl_sensor_pressure_deinit (void)
Parameters
N/A

Deinitialize pressure sensor.

Warnings

  • With certain boards (e.g. 4166A), using this deinitialization function disables other sensors, because they're on the same enable pin. Please use with caution.


Definition at line 58 of file common/sensor_pressure/sl_sensor_pressure.h

sl_sensor_pressure_get#

sl_status_t sl_sensor_pressure_get (float *pressure)
Parameters
[out]pressure

Barometric pressure (in millibars).

Getter for pressure sensor measurement data. Returns

  • Status of the operation.


Definition at line 65 of file common/sensor_pressure/sl_sensor_pressure.h