adxl345_fifo_transfer(9)
π adxl345_fifo_transfer(9) β Kernel API Manual β¨
okay so bestie, welcome to the adxl345_fifo_transfer(9) page from the Kernel API Manual β section 9, kernel API territory, and yes we're gonna make it make sense π«Ά. This one is all about reading samples number of elements. periodt π
πΈ NAME πΈ
adxl345_fifo_transfer β read samples number of elements. That's the whole vibe, no cap π.
β¨ SYNOPSIS β¨
look at this signature, she's iconic:
int adxl345_fifo_transfer (struct adxl345_state *st , int samples );
π ARGUMENTS π
stβ the instance of the state object of this sensor. Like, this is the sensor's state bestie, pls pass it through π«Ά.samplesβ the number of lines in the FIFO referred to asfifo_entry. So yes,samples= how many FIFO lines, and the FIFO is calledfifo_entry, keep that name exactly πΈ.
π¦ DESCRIPTION π¦
okay so the recommendation here is highkey important: do a multiple-byte read of all registers to prevent a change in data between reads of sequential registers. The way to do that is to read out the data registers X0, X1, Y0, Y1, Z0, Z1 β i.e. 6 bytes at once π₯. That's the move. Slay.
π RETURN π
Returns 0 or an error value. That's it, bestie β 0 or error value, fr fr π.
π SEE ALSO π
okay these are the linked faves and the kernel file you should peek at π:
- Kernel file
./drivers/iio/accel/adxl345_core.c adxl345_set_measure_en(9)adxl345_set_inact_time(9)adxl345_is_act_inact_ac(9)adxl345_set_act_inact_ac(9)adxl345_get_samples(9)adxl345_fifo_reset(9)adxl345_irq_handler(9)adxl345_core_probe(9)
mwah π β source/version info is ./drivers/iio/accel, date October 2026, and this was the adxl345_fifo_transfer(9) page. bye bestie, go read those FIFO lines πβ¨
π¦ 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