yas530_measure(9)
π yas530_measure(9) β Kernel API Manual π§²β¨
okay so real talk, this is a page from the Kernel API Manual, and it's all about yas530_measure. yes bestie, it's a function. yes it's (9). no we're not scared of it.
πΈ NAME πΈ
yas530_measure β Make a measure from the hardware. that's it, that's the vibe. it goes and gets you the numbers straight off the chip π
β¨ SYNOPSIS β¨
int yas530_measure (struct yas5xx *yas5xx , u16 *t , u16 *x , u16 *y1 ,
u16 *y2 );
lowkey iconic signature honestly. returns an int, takes a struct yas5xx * and four u16 *s. slay.
π ARGUMENTS π
yas5xxβ The device state. your lil chip's whole situation, passed in as a pointer π«Άtβ the raw temperature measurement π‘οΈ (raw, like, not cooked, no processing)xβ the raw x axis measurement πy1β they1axis measurement β¨y2β they2axis measurement π«
β¨ ngl, notice thatxgets plain old "x axis measurement" buty1andy2are literally named asy1andy2axis measurements. that's not me being cute, that's the doc. keep it straight bestie π
π₯ RETURN π₯
0 on success or error code. that's it. zero means we ate, anything else means something went sideways π
π DESCRIPTION π
Used by YAS530, YAS532 and YAS533. that's the whole family, fr fr. three chips, one measure function, no cap π
π¦ SEE ALSO π¦
- Kernel file
./drivers/iio/magnetometer/yamaha-yas530.c struct yas5xx_chip_info(9)struct yas5xx(9)yas537_measure(9)yas530_get_measure(9)yas537_get_measure(9)yas530_extract_calibration(9)
like, go read those too, they're all in the same friend group π
okay that's the whole page bestie, mwah π it lives under ./drivers/iio/magnetometer and it's dated October 2026 β so go forth, call yas530_measure, get your raw temp and your x/y1/y2, and remember: 0 on success, error code otherwise. 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