STRUCT VADC_CHANNEL_PROP(9)
π struct vadc_channel_prop(9) β the Kernel API Manual glow-up β¨
okay bestie, grab your iced coffee π β this is the Kernel API Manual entry for struct vadc_channel_prop, aka the lil' glow-up sheet that tells the VADC driver everything it needs to know about one single channel. one channel. one struct. iconic behavior only. π
πΈ NAME πΈ
struct vadc_channel_prop β VADC channel property. that's it, that's the whole vibe. it's the property bag for a channel, no cap. π
β¨ SYNOPSIS β¨
struct vadc_channel_prop {
unsigned int channel;
enum vadc_calibration calibration;
unsigned int decimation;
unsigned int prescale;
unsigned int hw_settle_time;
unsigned int avg_samples;
enum vadc_scale_fn_type scale_fn_type;
const char *channel_name;
};
like, look at her. eight fields. all main character energy. π¦
π«Ά Members π«Ά
so here's the member-by-member breakdown, and yes we're doing all of them, no skipping, i would never π
channelβ the channel number, bestie. go check the channel list if you need to look it up, iykyk. πcalibrationβ the calibration type. which flavor of calibrated are we today. π§decimationβ the sampling rate supported for the channel. it's giving "how often do we sample" realness. βprescaleβ channel scaling performed on the input signal. pre-game scaling, before the main event. πhw_settle_timeβ the time betweenAMUXbeing configured and the start of conversion. literally the little breather moment. let her settle, she's getting ready. πavg_samplesβ the ability to provide a single result from the ADC that is an average of multiple measurements. one result, many measurements, teamwork makes the dream work fr fr. πscale_fn_typeβ Represents the scaling function to convert voltage physical units desired by the client for the channel. it's the translator between raw ADC and the voltage your client actually wants. π₯channel_nameβ the channel name used in device tree. yes you have to match it. yes it matters. π
π SEE ALSO π
- Kernel file
./drivers/iio/adc/qcom-spmi-vadc.c struct vadc_priv(9)
go read those too, bestie, they're right there. π«Ά
lowkey a reminder that this whole thing is one struct describing ONE channel β don't go trying to cram your whole ADC in here, that's not the assignment. π
and that's the page!! π source vibes come to you from ./drivers/iio/adc, dated October 2026, and yes this was struct vadc_channel_prop(9) the whole time β slay, bye, drink some water ππ§ββοΈ
π¦ 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