STRUCT RZG2L_ADC_HW_PARAMS(9)
β¨ NAME β¨
struct rzg2l_adc_hw_params β the hardware-specific parameters struct, aka the little cheat sheet of ADC vibes π
(also psst, this whole page lives in the Kernel API Manual, section 9, bestie π«Ά)
πΈ SYNOPSIS πΈ
okay so this is literally the whole struct, no notes:
struct rzg2l_adc_hw_params {
u16 default_adsmp[2];
u16 adsmp_mask;
u16 adint_inten_mask;
u8 default_adcmp;
u8 num_channels;
bool adivc;
};
π MEMBERS π
bestie. let's go through the whole cast, main character by main character π
default_adsmpβ the default ADC sampling period, iykyk (see theADM3register π). it's an array, and the indices are NOT the same vibe: index0is the one used for voltage channels, and index1is the one used for the temperature channel. two different slots, two different jobs, no cap β¨adsmp_maskβ the ADC sampling period mask (see theADM3register again, she's everywhere π)adint_inten_maskβ the conversion end interrupt mask (see theADINTregister π¦)default_adcmpβ the default ADC cmp (yep,ADM3register, told you she's iconic π)num_channelsβ the number of supported channels, like the headcount at the function πadivcβ aboolthat literally just specifies if theADVICregister is available. that's it, that's the whole job π
π SEE ALSO π
- Kernel file
./drivers/iio/adc/rzg2l_adc.c struct rzg2l_adc_channel(9)β go read her too, she's the sister struct fr fr π«Ά
ngl that's the whole page, no bits were skipped, the struct simply ate and left no crumbs π
mwah π β signed off from ./drivers/iio/adc, dated October 2026, and yes the whole thing was <rainbow>struct rzg2l_adc_hw_params(9)</rainbow> themed, 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