ad4695_enter...quencer_mode(9)
β¨ 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=0NUM_SLOTS_AS=n-1CYC_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 π
0on success β slay, you did it π- a negative error code on failure β π not the vibe, something went wrong
π§ SEE ALSO π§
- Kernel file
./drivers/iio/adc/ad4695.c ad4695_set_single_cycle_mode(9)ad4695_exit_conversion_mode(9)ad4695_osr_to_regval(9)ad4695_read_one_sample(9)
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
- 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