heartrate6  2.0.0.0
Functions
main.c File Reference

HeartRate6 Click example. More...

#include "board.h"
#include "log.h"
#include "heartrate6.h"

Functions

void plot_res (uint16_t plot_data)
 
void log_res ()
 
void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

HeartRate6 Click example.

Description

The example demonstrates the use of Heart rate 6 Click board.

The demo application is composed of two sections :

Application Init

Initializes interface and performs the device configuration and reset.

Application Task

Waits until measurement cycle is finished and data is ready for reading. Then reads the LED Data values and performs the data plotting on serial plot, or logging on uart.

note: Uart baud rate should be as high as possible, then data plotting will be better. The new measurement cycle is started when command for measurement starting is sent, or when register 0x57 is read out. Also the pressure on sensor must be same for the all measurement time, if we want to get the valid results. This is very important to device can work properly.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ log_res()

void log_res ( )

◆ main()

void main ( void  )

◆ plot_res()

void plot_res ( uint16_t  plot_data)