STRUCT RZG2L_ADC_HW_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the ADM3 register 😌). it's an array, and the indices are NOT the same vibe: index 0 is the one used for voltage channels, and index 1 is the one used for the temperature channel. two different slots, two different jobs, no cap ✨
  • adsmp_mask β€” the ADC sampling period mask (see the ADM3 register again, she's everywhere 🌈)
  • adint_inten_mask β€” the conversion end interrupt mask (see the ADINT register πŸ¦‹)
  • default_adcmp β€” the default ADC cmp (yep, ADM3 register, told you she's iconic πŸ‘‘)
  • num_channels β€” the number of supported channels, like the headcount at the function πŸ“‹
  • adivc β€” a bool that literally just specifies if the ADVIC register 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