Direct usage of a kernel driver for lower level access to a sensor?

Hello.

I'm developing a project with nRF (because of Bluetooth) and 6DOF sensor LSM6DSO.
I would like to be able to configure the sensor in more precise way, e.g. like continuous FIFO buffer, but the universal sensor API has only the basic functionality.
So I'm thinking, what is a good way to implement it.

One way is to use the ST pid (platform independent) driver and manually map it to I2C functions.
But most of this work is already done in the kernel driver (zephyr/drivers/sensor/st/lsm6dso/lsm6dso.c).
So is a good idea to use directly this zephyr driver? If it's OK, is there any example for it?

I'm new to the nRF Connect SDK and it's very hard to orient in it and find the right documentation because of so much number of abstract layers.

Thank you

Related