LibDriver BMM150
Loading...
Searching...
No Matches
driver_bmm150_interrupt.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_BMM150_INTERRUPT_H
38#define DRIVER_BMM150_INTERRUPT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
54#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_DATA_OVERRUN BMM150_BOOL_FALSE
55#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_OVERFLOW BMM150_BOOL_FALSE
56#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_HIGH_THRESHOLD_Z BMM150_BOOL_TRUE
57#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_HIGH_THRESHOLD_Y BMM150_BOOL_TRUE
58#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_HIGH_THRESHOLD_X BMM150_BOOL_TRUE
59#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_LOW_THRESHOLD_Z BMM150_BOOL_TRUE
60#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_LOW_THRESHOLD_Y BMM150_BOOL_TRUE
61#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_LOW_THRESHOLD_X BMM150_BOOL_TRUE
62#define BMM150_INTERRUPT_DEFAULT_DATA_READY_PIN BMM150_BOOL_TRUE
63#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_PIN BMM150_BOOL_TRUE
64#define BMM150_INTERRUPT_DEFAULT_DATA_READY_PIN_POLARITY BMM150_DATA_READY_PIN_POLARITY_LOW
65#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_LATCH BMM150_BOOL_TRUE
66#define BMM150_INTERRUPT_DEFAULT_INTERRUPT_PIN_POLARITY BMM150_INTERRUPT_PIN_POLARITY_LOW
67#define BMM150_INTERRUPT_DEFAULT_REPXY 47
68#define BMM150_INTERRUPT_DEFAULT_REPZ 83
69#define BMM150_INTERRUPT_DEFAULT_DATA_RATE BMM150_DATA_RATE_2HZ
70
79
93 float low_threshold_ut, float high_threshold_ut, void (*callback)(uint8_t type));
94
102uint8_t bmm150_interrupt_deinit(void);
103
112uint8_t bmm150_interrupt_read(float ut[3]);
113
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif
driver bmm150 interface header file
bmm150_interface_t
bmm150 interface enumeration definition
bmm150_address_t
bmm150 address enumeration definition
uint8_t bmm150_interrupt_irq_handler(void)
interrupt irq
uint8_t bmm150_interrupt_init(bmm150_interface_t interface, bmm150_address_t addr_pin, float low_threshold_ut, float high_threshold_ut, void(*callback)(uint8_t type))
interrupt example init
uint8_t bmm150_interrupt_deinit(void)
interrupt example deinit
uint8_t bmm150_interrupt_read(float ut[3])
interrupt example read