Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
59 #define MOTION4_MODULE_ENABLE 0x00
60 #define MOTION4_MODULE_DISABLE 0x01
61 #define MOTION4_NO_DETECT_OBJECT 0x00
62 #define MOTION4_DETECT_OBJECT 0x01
81 #define MOTION4_MAP_MIKROBUS( cfg, mikrobus ) \
82 cfg.en = MIKROBUS( mikrobus, MIKROBUS_RST ); \
83 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT )
100 digital_in_t int_pin;
void motion4_cfg_setup(motion4_cfg_t *cfg)
Motion 4 configuration object setup function.
uint8_t motion4_detect_state(motion4_t *ctx)
Get detection state function.
motion4_detect_state_t
Definition: motion4.h:134
Definition: motion4.h:124
Definition: motion4.h:144
Definition: motion4.h:137
Definition: motion4.h:143
err_t motion4_init(motion4_t *ctx, motion4_cfg_t *cfg)
Motion 4 initialization function.
Definition: motion4.h:136
Definition: motion4.h:123
motion4_return_value_t
Motion 4 Click return value data.
Definition: motion4.h:121
Motion 4 Click context object.
Definition: motion4.h:91
motion4_pin_state_t
Definition: motion4.h:141
Motion 4 Click configuration object.
Definition: motion4.h:108
void motion4_enable(motion4_t *ctx, uint8_t state)
Enable motion sensor function.