adxl313_is_act_inact_ac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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

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