pedometer 2.0.0.0
pedometer.h File Reference

This file contains API for Pedometer Click driver. More...

#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  pedometer_t
 Click ctx object definition. More...
 
struct  pedometer_cfg_t
 Click configuration structure definition. More...
 

Macros

#define PEDOMETER_MAP_MIKROBUS(cfg, mikrobus)    cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
 
#define PEDOMETER_RETVAL   uint8_t
 
#define PEDOMETER_OK   0x00
 
#define PEDOMETER_INIT_ERROR   0xFF
 
#define PEDOMETER_NEW_STEP_DETECTED   0x01
 
#define PEDOMETER_NO_STEP_DETECTED   0x00
 

Functions

void pedometer_cfg_setup (pedometer_cfg_t *cfg)
 Config Object Initialization function.
 
PEDOMETER_RETVAL pedometer_init (pedometer_t *ctx, pedometer_cfg_t *cfg)
 Initialization function.
 
void pedometer_default_cfg (pedometer_t *ctx)
 Click Default Configuration function.
 
void pedometer_reset_step_counter (pedometer_t *ctx, uint32_t new_cnt)
 Functions for reset Step counter.
 
uint8_t pedometer_get_interrupt_state (pedometer_t *ctx)
 Functions for get Interrupt state on the INT pin.
 
uint32_t pedometer_get_step_counter (pedometer_t *ctx)
 Functions for get step counter.
 
uint8_t pedometer_process (pedometer_t *ctx)
 Pedometer process.
 

Detailed Description

This file contains API for Pedometer Click driver.