mmc35240_raw_to_mgauss(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to mmc35240_raw_to_mgauss(9) from the Kernel API Manual πŸ’– this icon converts raw readings to milli gauss β€” and yes, it also applies compensation for the output value, no cap ✨


πŸŽ€ SYNOPSIS πŸŽ€

int mmc35240_raw_to_mgauss (struct mmc35240_data *data , int index , __le16 buf[] , int *val );

🌸 ARGUMENTS 🌸

  • data β€” device private data, the lil home base for this device πŸ’…
  • index β€” axis index for which we want the conversion, so we know which axis we're serving πŸ‘‘
  • buf β€” raw data to be converted, literally 2 bytes in little endian format 🫢
  • val β€” compensated output reading, and the unit is milli gauss ✨

πŸ”₯ RETURN πŸ”₯

0 in case of success 😌 and -EINVAL when index is not valid β€” periodt πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

peep the Kernel file ./drivers/iio/magnetometer/mmc35240.c πŸ‘€ iykyk


mwah πŸ’– this lil page is mmc35240_raw_to_mgauss(9) from ./drivers/iio/magnetometer, dated October 2026 β€” slay and goodbye πŸŽ€βœ¨

πŸ“¦ where this page comes from