ecg 2.0.0.0
Public function

Functions

void ecg_cfg_setup (ecg_cfg_t *cfg)
 Config Object Initialization function.
 
ECG_RETVAL ecg_init (ecg_t *ctx, ecg_cfg_t *cfg)
 Initialization function.
 
void ecg_default_cfg (ecg_t *ctx)
 Click Default Configuration function.
 
ecg_data_t ecg_generic_read (ecg_t *ctx)
 Generic read function.
 

Detailed Description

Function Documentation

◆ ecg_cfg_setup()

void ecg_cfg_setup ( ecg_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.

◆ ecg_default_cfg()

void ecg_default_cfg ( ecg_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for ECG click.

◆ ecg_generic_read()

ecg_data_t ecg_generic_read ( ecg_t * ctx)

Generic read function.

Parameters
ctxClick object.
Returns
ADC data

@description This function read ADC data.

◆ ecg_init()

ECG_RETVAL ecg_init ( ecg_t * ctx,
ecg_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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