Go to the documentation of this file.
35 #include "drv_digital_out.h"
36 #include "drv_digital_in.h"
58 #define MOTION2_MODULE_ENABLE 0x00
59 #define MOTION2_MODULE_DISABLE 0x01
60 #define MOTION2_NO_DETECT_OBJECT 0x00
61 #define MOTION2_DETECT_OBJECT 0x01
79 #define MOTION2_MAP_MIKROBUS( cfg, mikrobus ) \
80 cfg.en = MIKROBUS( mikrobus, MIKROBUS_RST ); \
81 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT );
Definition: motion2.h:121
Definition: motion2.h:133
void motion2_enable(motion2_t *ctx, uint8_t state)
Enable motion sensor function.
Definition: motion2.h:140
motion2_detect_state_t
Definition: motion2.h:130
uint8_t motion2_detect_state(motion2_t *ctx)
Get detection state function.
motion2_return_value_t
Motion 2 Click return value data.
Definition: motion2.h:118
Definition: motion2.h:132
Motion 2 Click context object.
Definition: motion2.h:89
motion2_pin_state_t
Definition: motion2.h:137
Definition: motion2.h:139
void motion2_cfg_setup(motion2_cfg_t *cfg)
Config Object Initialization function.
Definition: motion2.h:120
Motion 2 Click configuration object.
Definition: motion2.h:105
err_t motion2_init(motion2_t *ctx, motion2_cfg_t *cfg)
Initialization function.