You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by gi...@git.apache.org on 2017/07/21 19:26:54 UTC

[GitHub] sjanc commented on a change in pull request #451: MYNEWT-816 SensorAPI: Add API for sensor poller & fix the poller callout

sjanc commented on a change in pull request #451: MYNEWT-816 SensorAPI: Add API for sensor poller & fix the poller callout
URL: https://github.com/apache/mynewt-core/pull/451#discussion_r128842764
 
 

 ##########
 File path: hw/sensor/include/sensor/sensor.h
 ##########
 @@ -482,6 +482,15 @@ struct sensor *sensor_mgr_find_next_bydevname(char *, struct sensor *);
  */
 int sensor_mgr_match_bytype(struct sensor *sensor, void *arg);
 
+/**
+ * Set the sensor poll rate
+ *
+ * @param The devname
+ * @param The poll rate in milli seconds
+ */
+int
+sensor_set_poll_rate_ms(char *devname, uint32_t poll_rate);
 
 Review comment:
   other functions take struct sensor instead of name,  is there a reason this one is special?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services