48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2020. All rights reserved.
|
|
*
|
|
* Description: hr_drv_HX3602.h
|
|
*
|
|
* Author: liangjianfei
|
|
*
|
|
* Create: 2024-4-26
|
|
*--------------------------------------------------------------------------*/
|
|
#ifndef _HRSENSOR_DRV_HX3602_H_
|
|
#define _HRSENSOR_DRV_HX3602_H_
|
|
#include <stdint.h>
|
|
#include "stdbool.h"
|
|
#include "hr_port.h"
|
|
|
|
#ifndef true
|
|
#define true 1
|
|
#endif
|
|
#ifndef false
|
|
#define false 0
|
|
#endif
|
|
|
|
#define TIMER_READ_MODE
|
|
#define IR_CHECK_TOUCH
|
|
#define NO_MATH_LIB
|
|
|
|
typedef struct {
|
|
uint32_t data_cnt;
|
|
uint8_t highlight;
|
|
uint8_t no_touch_check_flg;
|
|
uint32_t no_touch_check_cnt;
|
|
uint32_t timer_notouch_check_cnt;
|
|
uint8_t no_touch_cnt;
|
|
} agc_data_t;
|
|
|
|
int tjd_hrx3602_init(void);
|
|
void Hrs3602_wear_config(void);
|
|
void Hrs3602_write_efuse(void);
|
|
void Hrs3602_chip_disable(void);
|
|
void Hrs3602_low_power(void);
|
|
void Hrs3602_normal_power(void);
|
|
void Hrs3602_int_clear(void);
|
|
hrsensor_data_t tjd_hrx3602_processing_handle(int16_t *);
|
|
|
|
#endif
|
|
|
|
|