STRUCT ADC_TM5_CHANNEL(9)
π NAME π
okay so bestie, this is the Kernel API Manual page for struct adc_tm5_channel(9), and it is literally ADC Thermal Monitoring channel data. Thatβs the whole vibe: one struct, all the channel info, no cap. π«Ά
β¨ SYNOPSIS β¨
hereβs the struct in all its iconic glory, preserved exactly:
struct adc_tm5_channel {
unsigned int channel;
unsigned int adc_channel;
enum adc_tm5_cal_method cal_method;
unsigned int prescale;
unsigned int hw_settle_time;
unsigned int decimation;
unsigned int avg_samples;
bool high_thr_en;
bool low_thr_en;
bool meas_en;
struct iio_channel *iio;
struct adc_tm5_chip *chip;
struct thermal_zone_device *tzd;
};
π«Ά Members π«Ά
okay, member-by-member, letβs go π
channelβ channel number. literally the channel number, bestie.adc_channelβ corresponding ADC channel number. itβs giving βthe ADC-side matchβ energy.cal_methodβ calibration method.prescaleβ channel scaling performed on the input signal.hw_settle_timeβ the time between AMUX being configured and the start of conversion. yes, that exact timing window β¨decimationβ sampling rate supported for the channel.avg_samplesβ ability to provide single result from the ADC that is an average of multiple measurements. averaging slay πhigh_thr_enβ channel upper voltage threshold enable state.low_thr_enβ channel lower voltage threshold enable state.meas_enβ recurring measurement enable state.iioβ IIO channel instance used by this channel.chipβ ADC TM chip instance.tzdβ thermal zone device used by this channel.
π SEE ALSO π
go look at the Kernel file ./drivers/thermal/qcom/qcom-spmi-adc-tm5.c and also struct adc_tm5_chip(9). thatβs the see-also situation, periodt π¦
mwah π cute little sign-off: this pageβs source/version is ./drivers/thermal/qcom, itβs dated October 2026, and itβs literally struct adc_tm5_channel(9). bye bestie, go read some kernel source π
π¦ 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