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

jan-mo notifications at github.com
Fri Jan 29 11:50:53 CET 2021


@jan-mo commented on this pull request.



>   */
-#define LIS2DH12_STATUS_XDA     (0x01)  /**< X-axis new data available */
-#define LIS2DH12_STATUS_YDA     (0x02)  /**< Y-axis new data available */
-#define LIS2DH12_STATUS_ZDA     (0x04)  /**< Z-axis new data available */
-#define LIS2DH12_STATUS_ZYXDA   (0x08)  /**< on X-, Y-, Z-axis new data available */
-#define LIS2DH12_STATUS_XOR     (0x10)  /**< X-axis data overrun */
-#define LIS2DH12_STATUS_YOR     (0x20)  /**< Y-axis data overrun */
-#define LIS2DH12_STATUS_ZOR     (0x40)  /**< Y-axis data overrun */
-#define LIS2DH12_STATUS_ZYXOR   (0x80)  /**< on X-, Y-, Z-axis data overrun */
+typedef struct {
+    lis2dh12_fifo_mode_t FIFO_mode; /**< set FIFO mode */
+    uint8_t FIFO_watermark:5;       /**< set the FIFO watermark level */
+    bool FIFO_set_INT2;             /**< sets the FIFO interrupt to INT2, otherwise INT1 */
+    bool FIFO_enable;               /**< enables the FIFO */

Yes, you are right :smile: 

-- 
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_r566736598
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210129/2422e1f8/attachment-0001.htm>


More information about the notifications mailing list