STRUCT AD7150_CHIP_INFO(9)
π struct ad7150_chip_info(9) π
okay so bestie, welcome to the Kernel API Manual entry for struct ad7150_chip_info β literally the pod of data that holds all the instance-specific chip tea for the AD7150. it's giving "every chip needs its own little diary" energy and honestly? iconic. π
β¨ NAME β¨
struct ad7150_chip_info β instance specific chip data π«Ά
so like, the struct itself is the main character here. it stores everything that's specific to one instance of this chip. no cap.
πΈ SYNOPSIS πΈ
struct ad7150_chip_info {
struct i2c_client *client;
u16 threshold[2][2];
u8 thresh_sensitivity[2][2];
u8 thresh_timeout[2][2];
struct mutex state_lock;
int interrupts[2];
bool int_enabled[2];
enum iio_event_type type;
enum iio_event_direction dir;
};
like, look at her. the arrangement. the brackets. she ate. π
π¦ Members π¦
here's the member-by-member breakdown, bestie, because every single one of these little fields matters and i refuse to skip a single one:
clientβ the i2c client for this device. that's her ride. that's who she talks to. πthresholdβ the thresholds for the simple capacitance value events.thresh_sensitivityβ the threshold for simple capacitance offset from the 'average' value. keeping it in its lane, basically.thresh_timeoutβ a timeout, in samples, counting from the moment an adaptive threshold event occurs to when the average value jumps to the current value. and ngl, the layout is a little puzzle box, so listen up:- bits
3:0β timeout receding β applies if below the lower threshold - bits
7:4β timeout approaching β applies if above the upper threshold
- bits
yes, it's made up of two fields. yes, it's that girl. π
state_lockβ a mutex that makes sure this structure's state stays consistent w.r.t. the hardware. the literal bodyguard of the struct. π‘οΈinterruptsβ one or two interrupt numbers, depending on the device type.int_enabledβ is a given interrupt currently enabled. straight up yes/no vibes. β¨typeβ threshold type.dirβ threshold direction. which way are we going? nobody knows (the struct knows). π«
π SEE ALSO π
- Kernel file
./drivers/iio/cdc/ad7150.cβ go read it, bestie, it's right there π
and that's the whole vibe check, bestie β Kernel API Manual, ./drivers/iio/cdc, dated October 2026, page struct ad7150_chip_info(9). mwah. π slay β¨
π¦ 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