heartrate9 2.0.0.0
heartrate9.h File Reference

This file contains API for Heart Rate 9 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"

Go to the source code of this file.

Data Structures

struct  heartrate9_t
 Heart Rate 9 Click context object. More...
 
struct  heartrate9_cfg_t
 Heart Rate 9 Click configuration object. More...
 

Macros

#define DRV_BUFFER_SIZE   200
 Heart Rate 9 driver buffer size.
 
#define HEARTRATE9_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Functions

void heartrate9_cfg_setup (heartrate9_cfg_t *cfg)
 Heart Rate 9 configuration object setup function.
 
err_t heartrate9_init (heartrate9_t *ctx, heartrate9_cfg_t *cfg)
 Heart Rate 9 initialization function.
 
err_t heartrate9_generic_write (heartrate9_t *ctx, char *data_buf, uint16_t len)
 Heart Rate 9 data writing function.
 
err_t heartrate9_generic_read (heartrate9_t *ctx, char *data_buf, uint16_t max_len)
 Heart Rate 9 data reading function.
 
void heartrate9_set_rst (heartrate9_t *ctx, uint8_t state)
 Sets state of the rst pin setting.
 

Detailed Description

This file contains API for Heart Rate 9 Click Driver.