ecg3 2.0.0.0
main.c File Reference

Ecg3 Click example. More...

#include "board.h"
#include "log.h"
#include "ecg3.h"

Functions

void plot_ecg ()
 
void log_rtor ()
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

Ecg3 Click example.

Description

This click is made for ECG and HR, equipped with an ultra-low power, single channel, integrated biopotential AFE, with the ECG and R-to-R detection functionality.

The demo application is composed of two sections :

Application Init

Initializes SPI interface and performs the all necessary configuration for device to work properly.

Application Task

Reads ECG Data every 8ms and sends this data to the serial plotter.

note: Additional Functions :

  • void plot_ecg() - Sends ECG Data to the serial plotter.
  • void log_rtor() - Sends Heart Rate and R - R Data to the uart terminal.
Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ log_rtor()

void log_rtor ( )

◆ main()

int main ( void )

◆ plot_ecg()

void plot_ecg ( )