Added LIR latching on LIS2DW
This commit is contained in:
committed by
Alessandro Genova
parent
c5fe350fa1
commit
dd054efe8d
@@ -92,6 +92,12 @@ typedef enum {
|
||||
LIS2DW_FILTER_HIGH_PASS = 1,
|
||||
} lis2dw_filter_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
LIS2DW12_INT_PULSED = 0,
|
||||
LIS2DW12_INT_LATCHED = 1,
|
||||
} lis2dw12_lir_t;
|
||||
|
||||
typedef enum {
|
||||
LIS2DW_RANGE_16_G = 0b11, // +/- 16g
|
||||
LIS2DW_RANGE_8_G = 0b10, // +/- 8g
|
||||
@@ -367,6 +373,10 @@ void lis2dw_configure_tap_threshold(uint8_t threshold_x, uint8_t threshold_y, ui
|
||||
|
||||
void lis2dw_configure_tap_duration(uint8_t latency, uint8_t quiet, uint8_t shock);
|
||||
|
||||
void lis2dw12_int_notification_set(lis2dw12_lir_t val);
|
||||
|
||||
lis2dw12_lir_t lis2dw12_int_notification_get(void);
|
||||
|
||||
void lis2dw_configure_int1(uint8_t sources);
|
||||
|
||||
void lis2dw_configure_int2(uint8_t sources);
|
||||
@@ -375,9 +385,9 @@ void lis2dw_enable_interrupts(void);
|
||||
|
||||
void lis2dw_disable_interrupts(void);
|
||||
|
||||
void lis2dw_pulsed_interrupts(void);
|
||||
void lis2dw_pulsed_drdy_interrupts(void);
|
||||
|
||||
void lis2dw_latched_interrupts(void);
|
||||
void lis2dw_latched_drdy_interrupts(void);
|
||||
|
||||
lis2dw_interrupt_source_t lis2dw_get_interrupt_source(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user