ad4695_enter...quencer_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ad4695_enter_advanced_sequencer_mode ✨

okay so bestie, this is a page straight out of the Kernel API Manual and it's literally about putting your ADC into advanced sequencer mode. no cap, it's a whole vibe. let's get into it πŸ’…


🌸 NAME 🌸

ad4695_enter_advanced_sequencer_mode β€” puts the ADC into advanced sequencer mode πŸŽ€

like, that's the whole job. it shows up, it flips the bits, it leaves. iconic behavior fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

int ad4695_enter_advanced_sequencer_mode(struct ad4695_state *st, u32 n);

πŸ’– ARGUMENTS πŸ’–

  • st β€” the driver state 🫢 you know, the whole context of the thing, the main character of this function.
  • n β€” the number of slots you wanna use. heads up tho: it must be >= 2, <= 128 ⚠️ like, no going under two, no going over a hundred and twenty-eight. that's the range, periodt.

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea 🍡 β€” as per the datasheet, to enable the advanced sequencer you gotta set three things:

  • STD_SEQ_EN=0
  • NUM_SLOTS_AS=n-1
  • CYC_CTRL=0

that's straight from Table 15 in the datasheet, iykyk πŸ“–βœ¨

and then β€” this is the fun part β€” setting SPI_MODE=1 triggers the first conversion, using the channel in AS_SLOT0 πŸ”₯ like, that's the spark, that's the moment it all starts happening.

ngl the n-1 is doing a lot of heavy lifting here, don't sleep on it πŸ’€

🌈 RETURN 🌈

  • 0 on success β€” slay, you did it πŸ‘‘
  • a negative error code on failure β€” 😭 not the vibe, something went wrong

🧚 SEE ALSO 🧚

go read those too, they're all part of the same friend group 🫢✨


and that's the whole page, bestie!! πŸŽ€ this little gem lives in ./drivers/iio/adc and it's dated October 2026 β€” so like, mark your calendar πŸ“…πŸ’œ mwah, go forth and sequence your advancedness ✨

πŸ“¦ where this page comes from