ecg4 2.0.0.0
|
This file contains API for ECG 4 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 | ecg4_t |
Click ctx object definition. More... | |
struct | ecg4_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | ECG4_MAP_MIKROBUS(cfg, mikrobus) |
#define | ECG4_RETVAL uint8_t |
#define | ECG4_OK 0x00 |
#define | ECG4_INIT_ERROR 0xFF |
#define | ECG4_SYNC_BYTE 0xAA |
#define | ECG4_EXCODE_BYTE 0x55 |
#define | ECG4_SIGNAL_QUALITY_CODE_BYTE 0x02 |
#define | ECG4_HEART_RATE_CODE_BYTE 0x03 |
#define | ECG4_RAW_DATA_CODE_BYTE 0x80 |
#define | ECG4_RESPONSE_READY 0x01 |
#define | ECG4_RESPONSE_NOT_READY 0x00 |
#define | ECG4_ENABLE_LDO_CTRL 0x01 |
#define | ECG4_DISABLE_LDO_CTRL 0x00 |
#define | DRV_RX_BUFFER_SIZE 1000 |
#define | DRV_TX_BUFFER_SIZE 50 |
Typedefs | |
typedef void(* | ecg4_hdl_t) (uint8_t *, uint8_t *, uint8_t *, uint8_t *) |
typedef uint8_t | ecg4_error_t |
Error type. | |
Functions | |
void | ecg4_cfg_setup (ecg4_cfg_t *cfg) |
Config Object Initialization function. | |
ECG4_RETVAL | ecg4_init (ecg4_t *ctx, ecg4_cfg_t *cfg) |
Initialization function. | |
void | ecg4_module_reset (ecg4_t *ctx) |
Reset module. | |
void | ecg4_generic_write (ecg4_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | ecg4_generic_read (ecg4_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | ecg4_enable_ldo_ctrl (ecg4_t *ctx, uint8_t state) |
LDO Control function. | |
void | ecg4_uart_isr (ecg4_t *ctx, uint8_t rx_dat) |
Uart Interrupt Routine function. | |
uint8_t | ecg4_responseReady (ecg4_t *ctx) |
Response ready check function. | |
This file contains API for ECG 4 Click driver.