ad4695_set_s...e_cycle_mode(9)
π ad4695_set_single_cycle_mode π
okay bestie, welcome to the ad4695_set_single_cycle_mode page from the Kernel API Manual β yes the header up top is all abbrev-y and dramatic (ad4695_set_s...e_cycle_mode(9)), but the actual function name is the full one and we're gonna say it with our whole chest β¨
πΈ NAME πΈ
ad4695_set_single_cycle_mode β literally just sets the device into single cycle mode. that's the whole vibe. π
π¦ SYNOPSIS π¦
int ad4695_set_single_cycle_mode (struct ad4695_state *st , unsigned int channel );
like. it takes your state and a channel and hands you back an int. no cap. π
π ARGUMENTS π
stβ the AD4695 state, aka the main character struct of this whole operation πchannelβ the first channel to read, the one that goes first, the opener, the lead singer π€
β DESCRIPTION β
so here's the tea, straight from the datasheet β to turn on single cycle mode you gotta set:
STD_SEQ_EN=0NUM_SLOTS_AS=0CYC_CTRL=1
β¦and yeah, that's literally Table 15 in the datasheet, iykyk π
then, once you set SPI_MODE=1, it triggers the first conversion using the channel that's sitting in AS_SLOT0. so AS_SLOT0 is basically the first one up, main character energy fr fr π₯
π§ CONTEXT π§
- it can sleep π΄ (so don't you dare call it from somewhere spicy)
- it must be called with
iio_device_claim_directheld β non-negotiable bestie, that's the rule π«Ά
π RETURN π
0on success β slay, ate, no notes β¨- a negative error code on failure β π happens to the best of us
π SEE ALSO π
- Kernel file
./drivers/iio/adc/ad4695.cπ ad4695_enter_advanced_sequencer_mode(9)πad4695_exit_conversion_mode(9)πͺad4695_osr_to_regval(9)π’ad4695_read_one_sample(9)π
ok that's the whole page bestie, go forth and enable your single cycle mode responsibly π
and for the cute sign-off: this lil masterpiece lives in ./drivers/iio/adc, dated October 2026, and answers to ad4695_set_s...e_cycle_mode(9) πβ¨π¦
π¦ 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