ghn-certi commented on a change in pull request #2215: URL: https://github.com/apache/incubator-nuttx/pull/2215#discussion_r518238635
########## File path: include/nuttx/sensors/sensor.h ########## @@ -495,6 +495,58 @@ struct sensor_ops_s CODE int (*batch)(FAR struct sensor_lowerhalf_s *lower, FAR unsigned int *latency_us); + + /************************************************************************** + * Name: fetch + * + * We can fetch sensor register data by this function. It will use buffer + * of sensor_read provided and disables intermediate buffer of upper half. + * We recommend lowerhalf driver writer to use this function for slower + * ODR(output data rate) of sensor because this way saves space and simple. + * + * If fectch isn't NULL, upper half driver will disable intermediate Review comment: ```suggestion * If fetch isn't NULL, upper half driver will disable intermediate ``` ---------------------------------------------------------------- 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