mmc35240_raw_to_mgauss(9)
β¨ 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
- 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