oximeter3 2.0.0.0
main.c File Reference

Oximeter3 Click example. More...

#include "board.h"
#include "log.h"
#include "oximeter3.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

uint8_t dev_mode = 0
 
uint16_t rd_val = 0
 
uint16_t counter = 2500
 

Detailed Description

Oximeter3 Click example.

Description

This example demonstrates the use of Oximeter 3 Click board.

The demo application is composed of two sections :

Application Init

Initializes the driver, checks the device ID then configures the device for the selected mode.

Application Task

Depending on the selected mode it reads heart rate data (OXIMETER3_HEART_RATE mode) or values of proximity and ambient light sensor (OXIMETER3_PROX or OXIMETER3_ALS modes). All data is being logged on USB UART where you can track their changes.

Note
In the case of heart rate, please use a Serial Plot application for data plotting.
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 )

◆ main()

int main ( void )

Variable Documentation

◆ counter

uint16_t counter = 2500

◆ dev_mode

uint8_t dev_mode = 0

◆ rd_val

uint16_t rd_val = 0