sca3000_write_event_config(9)
πΈ sca3000_write_event_config πΈ
okay bestie, welcome to the Kernel API Manual corner for sca3000_write_event_config β this one is literally the simple on/off control for the motion detector, and yes, she has lore π
β¨ NAME β¨
sca3000_write_event_config β simple on off control for motion detector π
π¦ SYNOPSIS π¦
int sca3000_write_event_config (struct iio_dev *indio_dev , const struct
iio_chan_spec *chan , enum iio_event_type type , enum
iio_event_direction dir , bool state );
π ARGUMENTS π
indio_devβ IIO device instance specific structure. Data specific to this particular driver may be accessed viaiio_priv(indio_dev).chanβ Description of the channel whose event we are configuring. π«Άtypeβ The type of event.dirβ The direction of the event.stateβ Desired state of event being configured.
π₯ DESCRIPTION π₯
So here's the vibe: this is a per axis control, but enabling any will result in the motion detector unit being enabled. No cap, that's the whole energy of it β¨
π¨ N.B. enabling motion detector stops normal data acquisition. That part is important, bestie β do not skip it π
There is a complexity in knowing which mode to return to when this mode is disabled. Currently normal mode is assumed. That's the current situation, and we are simply reporting it, periodt π¦
π SEE ALSO π
- Kernel file
./drivers/iio/accel/sca3000.c struct sca3000_state(9)struct sca3000_chip_info(9)sca3000_reg_lock_on(9)__sca3000_unlock_reg_lock(9)sca3000_write_ctrl_reg(9)sca3000_read_ctrl_reg(9)sca3000_print_rev(9)__sca3000_get_base_freq(9)sca3000_read_raw_samp_freq(9)sca3000_write_raw_samp_freq(9)sca3000_read_av_freq(9)sca3000_write_event_value(9)sca3000_ring_int_process(9)sca3000_event_handler(9)sca3000_hw_ring_preenable(9)sca3000_clean_setup(9)
mwah π this little corner of the kernel docs lives under ./drivers/iio/accel and was dated October 2026 β iconic, honestly ππ
π¦ 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