sca3000_write_event_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 via iio_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 πŸ‘‘


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