STRUCT AHT10_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct aht10_data πŸ’–

okay so bestie, we're in the Kernel API Manual and today's main character is struct aht10_data β€” literally all the data you need to operate an AHT10/AHT20 chip. no cap, that's the whole vibe. πŸŽ€


🌸 NAME 🌸

struct aht10_data β€” literally every single thing required to keep an AHT10/AHT20 chip alive and thriving πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct aht10_data {
    struct i2c_client *client;
    ktime_t min_poll_interval;
    ktime_t previous_poll_time;
    int temperature;
    int humidity;
    bool crc8;
    unsigned int meas_size;
    u8 init_cmd;
 };

πŸ‘‘ Members πŸ‘‘

let's do a little meet-and-greet with every field, because they all matter fr fr 🫢

  • client β€” the i2c client that's associated with the AHT10/AHT20. this is the link-up. πŸ”₯
  • min_poll_interval β€” the minimum poll interval. and listen, the poll rate limit is not 100% necessary, but the datasheet recommends you don't perform a measurement too often, because otherwise the chip starts warming up from the heat it generates (not me relating to a chip for once 😭). if you don't want it, it can be ignored by setting it to 0. default value is 2000 ms. ⭐
  • previous_poll_time β€” the previous time that the AHT10/AHT20 was polled. the receipts, basically. 🧚
  • temperature β€” the latest temperature value received from the AHT10/AHT20. 🌑️
  • humidity β€” the latest humidity value received from the AHT10/AHT20. πŸ’§
  • crc8 β€” the crc8 support flag. 🚩
  • meas_size β€” measurements data size. πŸ“
  • init_cmd β€” Initialization command. the opening act, the first impression, the debut. ✨

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hwmon/aht10.c β€” go read it, iykyk πŸ’œ

and that's the whole page bestie, you ate that πŸ“ this was served fresh from ./drivers/hwmon, dated October 2026, and it's struct aht10_data(9) all the way to the end. slay, periodt. πŸ’…πŸ‘‘

πŸ“¦ where this page comes from