INT dur table

This commit is contained in:
William Clark 2023-12-31 22:31:22 +00:00
parent 415dc2fe1c
commit 6352a65fec
3 changed files with 13 additions and 2 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
lis3dh
lis3dh
.vscode/

View File

@ -1,6 +1,5 @@
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include "lis3dh.h"
#include "registers.h"

View File

@ -155,6 +155,17 @@ struct lis3dh_config {
/* Duration time is measured in N/ODR where:
* --- N = The content of the intX_dur integer
* --- ODR = the data rate, eg 100, 400...
* [ODR] [1 LSb in milliseconds]
* 1 1000
* 10 100
* 25 40
* 50 20
* 100 10
* 200 5
* 400 2.5
* 1600 0.6
* 1344 0.744
* 5376 0.186
*/
uint8_t int1_dur; /* 7-bit INT 1 duration value */
uint8_t int2_dur; /* 7-bit INT 2 duration value */