ms_sensors_read_serial(9)
π ms_sensors_read_serial(9) π
okay bestie, welcome to the Kernel API Manual page for ms_sensors_read_serial β the serial number read function. she reads the serial number, and weβre obsessed. π
πΈ NAME πΈ
ms_sensors_read_serial β serial number read function
β¨ SYNOPSIS β¨
int ms_sensors_read_serial (struct i2c_client *client , u64 *sn );
π ARGUMENTS π
clientβ pointer to i2c clientsnβ pointer to 64-bits destination value
π¦ DESCRIPTION π¦
okay so this is the generic i2c serial number read function for Measurement Specialties devices. itβs used for the TSYS02d, HTU21, and MS8607 chipset. refer to the datasheet: http://www.meas-spec.com/downloads/HTU2X_Serial_Number_Reading.pdf
the sensor raw MSB serial number format is literally:
[ SNB3, CRC, SNB2, CRC, SNB1, CRC, SNB0, CRC]
the sensor raw LSB serial number format is:
[ X, X, SNC1, SNC0, CRC, SNA1, SNA0, CRC]
and the resulting serial number is:
[ SNA1, SNA0, SNB3, SNB2, SNB1, SNB0, SNC1, SNC0]
π RETURN π
0 on success, negative errno otherwise. thatβs it, bestie β no cap. β¨
π SEE ALSO π
Kernel file: ./drivers/iio/common/ms_sensors/ms_sensors_i2c.c
ms_sensors_reset(9)ms_sensors_read_prom_word(9)ms_sensors_convert_and_read(9)ms_sensors_crc_valid(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)ms_sensors_read_temp_and_pressure(9)
mwah π thatβs the whole page. source/version: ./drivers/iio/common/ms_sensors; date: October 2026; page: ms_sensors_read_serial(9). byeee π«Ά
π¦ 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