ms_sensors_...and_pressure(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 data
  • temperature β€” pointer to temperature destination value
  • pressure β€” 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 ⭐

  • 0 on success πŸŽ‰
  • negative errno otherwise 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/iio/common/ms_sensors/ms_sensors_i2c.c

and the whole bestie squad of related functions:


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