pedometer 2.0.0.0
Public function

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

Function Documentation

◆ pedometer_cfg_setup()

void pedometer_cfg_setup ( pedometer_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ pedometer_default_cfg()

void pedometer_default_cfg ( pedometer_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for Pedometer click.

◆ pedometer_get_interrupt_state()

uint8_t pedometer_get_interrupt_state ( pedometer_t * ctx)

Functions for get Interrupt state on the INT pin.

Parameters
ctxClick object.

@description This function gets interrupt state.

◆ pedometer_get_step_counter()

uint32_t pedometer_get_step_counter ( pedometer_t * ctx)

Functions for get step counter.

Parameters
ctxClick object.

@description This function gets counter.

◆ pedometer_init()

PEDOMETER_RETVAL pedometer_init ( pedometer_t * ctx,
pedometer_cfg_t * cfg )

Initialization function.

Parameters
pedometerClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ pedometer_process()

uint8_t pedometer_process ( pedometer_t * ctx)

Pedometer process.

Parameters
ctxClick object.

@description This function gets pedometer process.

◆ pedometer_reset_step_counter()

void pedometer_reset_step_counter ( pedometer_t * ctx,
uint32_t new_cnt )

Functions for reset Step counter.

Parameters
ctxClick object.
new_cntNew cnt.

@description This function reset step counter.