You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/28 10:40:17 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a change in pull request #5882: sensor/utils: add remap data according to postion on board

pkarashchenko commented on a change in pull request #5882:
URL: https://github.com/apache/incubator-nuttx/pull/5882#discussion_r836289105



##########
File path: include/nuttx/sensors/sensor.h
##########
@@ -827,6 +827,23 @@ extern "C"
 #define EXTERN extern
 #endif
 
+/****************************************************************************
+ * Name: sensor_remap_vector_raw16
+ *
+ * Description:
+ *   This function remap the sensor data according to the place position on
+ *   board. The value of place is determined base on g_remap_tbl.
+ *
+ * Input Parameters:
+ *   in    - A pointer to input data need remap.
+ *   out   - A pointer to output data.
+ *   place - The place position of sensor on board.
+ *
+ ****************************************************************************/
+
+void sensor_remap_vector_raw16(FAR const int16_t *in, FAR int16_t *out,

Review comment:
       IMO that should be a part of `sensor_ioctl` call.




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

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