STRUCT CPCAP_ADC_REQUEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cpcap_adc_request(9) β€” like, the cpcap adc request struct, bestie ✨

okay so this is a page from the Kernel API Manual and it's all about struct cpcap_adc_request β€” the cpcap adc request. yes it's niche. yes it's iconic. let's get into it πŸŽ€


🌸 NAME 🌸

struct cpcap_adc_request β€” literally the cpcap adc request. that's the vibe. that's the whole thing. πŸ’–


✨ SYNOPSIS ✨

here's the struct in all her main-character glory, copy it exactly bestie, no cap:

struct cpcap_adc_request {
    int channel;
    const struct cpcap_adc_phasing_tbl *phase_tbl;
    const struct cpcap_adc_conversion_tbl *conv_tbl;
    int bank_index;
    enum cpcap_adc_timing timing;
    int result;
 };

πŸ¦‹ Members πŸ¦‹

so each of these fields is doing her own little thing, and honestly? obsessed with the division of labor:

  • channel β€” the request channel. that's the channel you're asking for, periodt.
  • phase_tbl β€” the channel phasing table. a pointer to a const struct cpcap_adc_phasing_tbl, doing phasing table things.
  • conv_tbl β€” the channel conversion table. again a pointer, this time to a const struct cpcap_adc_conversion_tbl. conversions, slay.
  • bank_index β€” the channel index within the bank. it's giving "where in the bank am I" energy πŸ’…
  • timing β€” the timing settings. it's an enum cpcap_adc_timing, so like, the timing vibes are enumerated. very structured of her.
  • result β€” the result. yes. that's it. that's the description. the result is the result, iykyk 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

go look at these if you want the full lore, bestie:

  • Kernel file ./drivers/iio/adc/cpcap-adc.c
  • struct cpcap_adc(9)
  • struct cpcap_adc_phasing_tbl(9)
  • struct cpcap_adc_conversion_tbl(9)

ngl this one's short and sweet, but every single field matters, so don't go skipping the boring-looking ones 😭 the result one is literally one word and we respect her for it πŸ’€

and that's the page!! πŸ§šβ€β™€οΈπŸ’œ this little beauty lives over in ./drivers/iio/adc and she's dated October 2026 β€” like, future icon behavior fr fr. bye bestie, go read a phasing table πŸ“πŸŒΈ

πŸ“¦ where this page comes from