STRUCT AHT10_DATA(9)
β¨ 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β thei2cclient 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 to0. default value is2000 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
- 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