ms_sensors_...and_pressure(9)
π ms_sensors_...and_pressure(9) π
okay bestie, welcome to the Kernel API Manual page for ms_sensors_...and_pressure(9) β yes, the name is long, and no, we are not shortening it for the group chat. π«Ά
β¨ NAME β¨
ms_sensors_read_temp_and_pressure β read temp and pressure π
πΈ SYNOPSIS πΈ
int ms_sensors_read_temp_and_pressure (struct ms_tp_dev *dev_data , int
*temperature , unsigned int *pressure );
π ARGUMENTS π
dev_dataβ pointer to temperature/pressure device datatemperatureβ pointer to temperature destination valuepressureβ pointer to pressure destination value
π¦ DESCRIPTION π¦
okay so this function is literally doing the most: it reads the ADC and computes the pressure and temperature value. π Itβs the one used for MS5637 and MS8607 chipsets β those are the chips this covers, periodt.
No cap, thatβs the whole vibe: read ADC, compute pressure, compute temperature, keep it moving. β¨
β RETURN β
0on success π- negative
errnootherwise π
π₯ SEE ALSO π₯
Kernel file: ./drivers/iio/common/ms_sensors/ms_sensors_i2c.c
and the whole bestie squad of related functions:
ms_sensors_reset(9)ms_sensors_read_prom_word(9)ms_sensors_convert_and_read(9)ms_sensors_crc_valid(9)ms_sensors_read_serial(9)ms_sensors_write_resolution(9)ms_sensors_show_battery_low(9)ms_sensors_show_heater(9)ms_sensors_write_heater(9)ms_sensors_ht_read_temperature(9)ms_sensors_ht_read_humidity(9)ms_sensors_tp_crc4(9)ms_sensors_tp_crc_valid_112(9)ms_sensors_tp_crc_valid_128(9)ms_sensors_tp_read_prom(9)
cute sign-off: source/version location is ./drivers/iio/common/ms_sensors, the date says October 2026, and the page title is ms_sensors_...and_pressure(9). slay, bye bestie ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms