[riot-notifications] [RIOT-OS/RIOT] driver_lis2dh12: functionality extension (#15871)

jan-mo notifications at github.com
Fri Jan 29 13:22:30 CET 2021


@jan-mo commented on this pull request.



> +    bool INT1_enable;     /**< enables filter for AOI on interrupt 1 */
+    bool INT2_enable;     /**< enables filter for AOI on interrupt 2 */
+    bool DATA_OUT_enable; /**< enables filter for data output */
+} lis2dh12_highpass_t;
+
+/**
+ * @brief   LIS2DH12 click config values
+ */
+typedef struct {
+    bool enable_DOUBLE;     /**< otherwise single click for given axis are enabled */
+    bool enable_X_CLICK;    /**< enable double pr single click for X axes */
+    bool enable_Y_CLICK;    /**< enable double pr single click for Y axes */
+    bool enable_Z_CLICK;    /**< enable double pr single click for Z axes */
+    bool noINT_latency;     /**< if "0" interrupt stays high for TIME_latency setting \
+                                if "1" interrupt stays high until CLICK_SRC is read */
+    uint8_t curr_ODR_Hz;    /**< give current ODR setting (current frequency in Hz) */

I changed it to number of ODR cycles. Then the user should deal with it. Because if we do have to handle the interval time we should be able to do this in µs (>1000Hz). This will blow up all time values to `uint32_t` because we have to support the 1Hz (1sec) as well.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15871#discussion_r566784646
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210129/5491f05e/attachment.htm>


More information about the notifications mailing list