xiaoxiang781216 commented on pull request #2039:
URL: https://github.com/apache/incubator-nuttx/pull/2039#issuecomment-712630649


   @v01d and @btashton, there is one problem to let user control the buffer 
size: to support the hardware FIFO which is very popular on the new accel/gyro 
sensor model, sensor upper layer will extend the buffer temporarily to 
accumulate the bulk data and shrink the size once the userspace read out the 
data.
   
   Compare with IIO, the major difference is that:
   
   1. Don't support to access/control sensor through sysfs
   2. Don't support to issue the i2c/spi transaction directly inside the read 
callback
   3. Driver writer control how much buffer need through 
sensor_lowerhalf_s::buffer_bytes
   
   The limitation for item 2 is to reduce the driver implementation complexity.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to