adxl345_set_act_inact_ac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… adxl345_set_act_inact_ac β€” configure AC coupling or DC coupling, no cap

okay bestie, welcome to the Kernel API Manual page for adxl345_set_act_inact_ac(9). this function decides whether your activity/inactivity situation is AC coupled or DC coupled, and honestly? it’s giving gatekeeper of vibes. let’s get into it ✨

🌸 NAME 🌸

adxl345_set_act_inact_ac β€” Configure AC coupling or DC coupling.

πŸ¦‹ SYNOPSIS πŸ¦‹

int adxl345_set_act_inact_ac (struct adxl345_state *st , enum
       adxl345_activity_type type , bool cmd_en );

πŸŽ€ ARGUMENTS πŸŽ€

  • st β€” The device data. like, the state struct for the chip you’re talking to, bestie.
  • type β€” Provide a type of activity or inactivity. you’re telling it which flavor you want, iykyk.
  • cmd_en β€” enable or disable AC coupling. yes, it’s literally that.

πŸ’– DESCRIPTION πŸ’–

okay so depending on the type argument you pass in, this enables AC coupling or DC coupling. that’s the whole plot. iconic behavior, honestly.

⚠️ NOTE ⚠️

Activity and inactivity can be either AC coupled or DC coupled β€” not both at the same time. so like, pick a lane, bestie. it is not a both situation. πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

0 if successful, else error value. so if you get 0, slay. anything else means it did not eat. 😭

🌈 SEE ALSO 🌈

go read these next, fr fr:


that’s the whole page, bestie. source/version is ./drivers/iio/accel, dated October 2026 β€” and this was adxl345_set_act_inact_ac(9), periodt. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from