42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_in.h"
64#define PEDOMETER_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
72#define PEDOMETER_RETVAL uint8_t
74#define PEDOMETER_OK 0x00
75#define PEDOMETER_INIT_ERROR 0xFF
82#define PEDOMETER_NEW_STEP_DETECTED 0x01
83#define PEDOMETER_NO_STEP_DETECTED 0x00
#define PEDOMETER_RETVAL
Definition pedometer.h:72
uint8_t pedometer_get_interrupt_state(pedometer_t *ctx)
Functions for get Interrupt state on the INT pin.
void pedometer_reset_step_counter(pedometer_t *ctx, uint32_t new_cnt)
Functions for reset Step counter.
void pedometer_default_cfg(pedometer_t *ctx)
Click Default Configuration function.
PEDOMETER_RETVAL pedometer_init(pedometer_t *ctx, pedometer_cfg_t *cfg)
Initialization function.
void pedometer_cfg_setup(pedometer_cfg_t *cfg)
Config Object Initialization function.
uint8_t pedometer_process(pedometer_t *ctx)
Pedometer process.
uint32_t pedometer_get_step_counter(pedometer_t *ctx)
Functions for get step counter.
Click configuration structure definition.
Definition pedometer.h:111
int16_t dev_step_counter
Definition pedometer.h:115
pin_name_t int_pin
Definition pedometer.h:114
Click ctx object definition.
Definition pedometer.h:97
int16_t step_counter
Definition pedometer.h:102
digital_in_t int_pin
Definition pedometer.h:101