ecg4 2.0.0.0
Public function

Functions

void ecg4_cfg_setup (ecg4_cfg_t *cfg)
 Config Object Initialization function.
 
ECG4_RETVAL ecg4_init (ecg4_t *ctx, ecg4_cfg_t *cfg)
 Initialization function.
 
void ecg4_module_reset (ecg4_t *ctx)
 Reset module.
 
void ecg4_generic_write (ecg4_t *ctx, char *data_buf, uint16_t len)
 Generic write function.
 
int32_t ecg4_generic_read (ecg4_t *ctx, char *data_buf, uint16_t max_len)
 Generic read function.
 
void ecg4_enable_ldo_ctrl (ecg4_t *ctx, uint8_t state)
 LDO Control function.
 
void ecg4_uart_isr (ecg4_t *ctx, uint8_t rx_dat)
 Uart Interrupt Routine function.
 
uint8_t ecg4_responseReady (ecg4_t *ctx)
 Response ready check function.
 

Detailed Description

Function Documentation

◆ ecg4_cfg_setup()

void ecg4_cfg_setup ( ecg4_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.

◆ ecg4_enable_ldo_ctrl()

void ecg4_enable_ldo_ctrl ( ecg4_t * ctx,
uint8_t state )

LDO Control function.

Parameters
ctxClick object.
state
           0 - Disable LDO control
           1 - Enable LDO control3
          

@description Function powers up or down control of LDO (Low Drop Out).

Note
The BMD101 contains an internal LDO which consists of a bandgap cell to generate a 1.2V reference followed by two separate unity gain buffers, for the analog and digital supplies.

◆ ecg4_generic_read()

int32_t ecg4_generic_read ( ecg4_t * ctx,
char * data_buf,
uint16_t max_len )

Generic read function.

Parameters
ctxClick object.
data_bufData buffer for read data.
max_lenThe maximum length of data that can be read.
Returns
Number of reads data.

◆ ecg4_generic_write()

void ecg4_generic_write ( ecg4_t * ctx,
char * data_buf,
uint16_t len )

Generic write function.

Parameters
ctxClick object.
data_bufData buffer for sends.
lenNumber of bytes for sends.

◆ ecg4_init()

ECG4_RETVAL ecg4_init ( ecg4_t * ctx,
ecg4_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ ecg4_module_reset()

void ecg4_module_reset ( ecg4_t * ctx)

Reset module.

Parameters
ctxClick object.

◆ ecg4_responseReady()

uint8_t ecg4_responseReady ( ecg4_t * ctx)

Response ready check function.

Parameters
ctxClick object.

@description Function checks if a response is ready.

◆ ecg4_uart_isr()

void ecg4_uart_isr ( ecg4_t * ctx,
uint8_t rx_dat )

Uart Interrupt Routine function.

Parameters
ctxClick object.

@description Function performs the uart interrupt routine, reads a data from uart rx buffer and makes a response from the BMD101 device.