adxl313_is_act_inact_ac(9)
π adxl313_is_act_inact_ac(9)
okay bestie, welcome to the Kernel API Manual β¨ β this one's a little function from the IIO accelerometer world and honestly it's giving "small but mighty". Let's get into it π
πΈ NAME
adxl313_is_act_inact_ac β the vibe check that tells you if AC coupling is enabled. that's it, that's the whole job π
β¨ SYNOPSIS
int adxl313_is_act_inact_ac (struct adxl313_data *data , enum
adxl313_activity_type type );
yeah she's a two-argument girly and she returns an int. no cap π«Ά
π¦ ARGUMENTS
dataβ the device data. like, the actual accelerometer's business. hand it over and the function knows who it's talking about πtypeβ the activity or inactivity type. you're telling it which flavour of act/inact you're curious about π
π₯ DESCRIPTION
so here's the tea β β you pass in a type of activity or inactivity, combined with either AC coupling set, or it just defaults to DC coupling. then this function literally verifies whether that combination is currently enabled or not. main character energy of a checker function, honestly π
it doesn't set anything, bestie, it just looks and reports back. lowkey iconic π
β RETURN
if the provided activity type has AC coupling enabled, you get that. otherwise, a negative error value shows up to ruin the party π so always check the return β fr fr π
π§ SEE ALSO
- Kernel file
./drivers/iio/accel/adxl313_core.c adxl313_fifo_reset(9)adxl313_core_probe(9)
these are the siblings, go say hi π«
ngl, if you're poking at adxl313_core.c anyway, you might as well read the whole thing. iykyk π
and that's the whole page, babe π this came out of ./drivers/iio/accel and it's dated October 2026 β slay, go write some driver code, you got this π
π
π¦ 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