ad_sd_write_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

ad_sd_write_reg(9) πŸ’…

okay so bestie, we're in the Kernel API Manual and this page is literally about ad_sd_write_reg. no cap, it does exactly what it says: writes a register. πŸŽ€

✨ NAME ✨

ad_sd_write_reg β€” write a register. πŸ’–

🌸 SYNOPSIS 🌸

int ad_sd_write_reg (struct ad_sigma_delta *sigma_delta , unsigned int
       reg , unsigned int size , unsigned int val );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sigma_delta β€” the sigma delta device. that's the main character right there.
  • reg β€” address of the register. literally where we're going.
  • size β€” size of the register (0-3). yep, the range is 0-3, don't forget it.
  • val β€” value to write to the register. the stuff going in. ✨

πŸ’… DESCRIPTION πŸ’…

Returns 0 on success, an error code otherwise. fr fr, that's the whole return vibe: 0 = slay, anything else = an error code. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/iio/adc/ad_sigma_delta.c, plus these besties: ad_sd_set_comm(9), ad_sd_read_reg(9), ad_sd_reset(9), ad_sd_calibrate_all(9), ad_sigma_delta_single_conversion(9), ad_sd_validate_trigger(9), devm_ad_sd_setup_buffer_and_trigger(9), ad_sd_init(9). 🌈


mwah πŸ’– this page came from ./drivers/iio/adc, dated October 2026, and it's ad_sd_write_reg(9) β€” periodt. πŸŽ€

πŸ“¦ where this page comes from