pedometer 2.0.0.0
|
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. | |
void pedometer_cfg_setup | ( | pedometer_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void pedometer_default_cfg | ( | pedometer_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Pedometer click.
uint8_t pedometer_get_interrupt_state | ( | pedometer_t * | ctx | ) |
Functions for get Interrupt state on the INT pin.
ctx | Click object. |
@description This function gets interrupt state.
uint32_t pedometer_get_step_counter | ( | pedometer_t * | ctx | ) |
Functions for get step counter.
ctx | Click object. |
@description This function gets counter.
PEDOMETER_RETVAL pedometer_init | ( | pedometer_t * | ctx, |
pedometer_cfg_t * | cfg ) |
Initialization function.
pedometer | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t pedometer_process | ( | pedometer_t * | ctx | ) |
Pedometer process.
ctx | Click object. |
@description This function gets pedometer process.
void pedometer_reset_step_counter | ( | pedometer_t * | ctx, |
uint32_t | new_cnt ) |
Functions for reset Step counter.
ctx | Click object. |
new_cnt | New cnt. |
@description This function reset step counter.