39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
74#define DRV_BUFFER_SIZE 200
92#define HEARTRATE9_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
94 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
95 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
#define DRV_BUFFER_SIZE
Heart Rate 9 driver buffer size.
Definition heartrate9.h:74
void heartrate9_set_rst(heartrate9_t *ctx, uint8_t state)
Sets state of the rst pin setting.
void heartrate9_cfg_setup(heartrate9_cfg_t *cfg)
Heart Rate 9 configuration object setup function.
err_t heartrate9_generic_write(heartrate9_t *ctx, char *data_buf, uint16_t len)
Heart Rate 9 data writing function.
err_t heartrate9_init(heartrate9_t *ctx, heartrate9_cfg_t *cfg)
Heart Rate 9 initialization function.
err_t heartrate9_generic_read(heartrate9_t *ctx, char *data_buf, uint16_t max_len)
Heart Rate 9 data reading function.
Heart Rate 9 Click configuration object.
Definition heartrate9.h:123
uint32_t baud_rate
Definition heartrate9.h:132
bool uart_blocking
Definition heartrate9.h:133
uart_data_bits_t data_bit
Definition heartrate9.h:134
pin_name_t tx_pin
Definition heartrate9.h:126
pin_name_t rx_pin
Definition heartrate9.h:125
uart_stop_bits_t stop_bit
Definition heartrate9.h:136
uart_parity_t parity_bit
Definition heartrate9.h:135
pin_name_t rst
Definition heartrate9.h:129
Heart Rate 9 Click context object.
Definition heartrate9.h:105
uart_t uart
Definition heartrate9.h:110
digital_out_t rst
Definition heartrate9.h:107