adxl345_set_act_inact_ac(9)
π 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:
- Kernel file
./drivers/iio/accel/adxl345_core.c adxl345_set_measure_en(9)adxl345_set_inact_time(9)adxl345_is_act_inact_ac(9)adxl345_get_samples(9)adxl345_fifo_transfer(9)adxl345_fifo_reset(9)adxl345_irq_handler(9)adxl345_core_probe(9)
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
- 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