there’s driver for this BMA220 acceleration sensor driver, $TOP/public_sources/r32.6.1/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/drivers/iio/accel/bma220_spi.c
there’s API to fetch the data for your usage.
for example,
so, you may use the serial port utility to setup a loop to communicate with this sensor continuously.
I’ve google it around, and there’re some samples you may check for reference, bma220 sample code python - Google Search
I will, i just wanted some clarity of what this line of code does? Please $TOP/public_sources/r32.6.1/Linux_for_Tegra/source/public/kernel_src/kernel/kernel-4.9/drivers/iio/accel/bma220_spi.c