You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2019/07/01 21:08:26 UTC
[mynewt-core] branch master updated: hw/drivers/lis2dh12: Add
lis2dh12_get_op_mode to header file (#1904)
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 64d25d3 hw/drivers/lis2dh12: Add lis2dh12_get_op_mode to header file (#1904)
64d25d3 is described below
commit 64d25d34fbda967f9e327e538efc302125090e59
Author: JustineKH <35...@users.noreply.github.com>
AuthorDate: Mon Jul 1 14:08:22 2019 -0700
hw/drivers/lis2dh12: Add lis2dh12_get_op_mode to header file (#1904)
- Add lis2dh12_get_op_mode prototype to header file
---
hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h b/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h
index 52c5a5c..9a3705f 100644
--- a/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h
+++ b/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h
@@ -544,6 +544,17 @@ int
lis2dh12_set_op_mode(struct sensor_itf *itf, uint8_t mode);
/**
+ * Get operating mode
+ *
+ * @param the sensor interface
+ * @param ptr to mode
+ *
+ * @return 0 on success, non-zero on failure
+ */
+int
+lis2dh12_get_op_mode(struct sensor_itf *itf, uint8_t *mode);
+
+/**
* Clear click interrupt
*
* @param the sensor interface