* @Author: penglei 1624952103@qq.com
* @Date: 2024-03-13 15:08:38
* @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2025-08-07 12:01:02
+ * @LastEditTime: 2025-10-27 16:05:36
* @FilePath: /FD230/code/sdk/drivers/peripheral/ppg/hx3695/hx3695_hal.c
* @Description:
*
return spo2;
}
+uint8_t ppg_get_hrv(void)
+{
+ uint8_t hrv = 0;
+#ifdef PPG_HX3695
+ hrv = hx3695_get_hrv();
+#elif defined PPG_PAH8009
+
+#endif
+ return hrv;
+}
+
+
uint8_t ppg_get_wear_status(void)
{
uint8_t wear_status = 0;
* @Author: penglei 1624952103@qq.com
* @Date: 2024-06-07 11:18:26
* @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2025-07-28 16:41:38
+ * @LastEditTime: 2025-10-27 16:00:09
* @FilePath: /FD230/code/sdk/drivers/peripheral/ppg/ppg/ppg_hal.h
* @Description:
*
void ppg_set_factory_log_switch(uint8_t cmd);
uint8_t ppg_get_factory_log_switch(void);
+uint8_t ppg_get_hrv(void);
#ifdef __cplusplus
#if __cplusplus
// static int history_wear_status = -1;\r
static uint8_t wear_result = 0;\r
static uint8_t spo2_ret = 0;\r
+static uint8_t hrv_ret = 0;\r
static int32_t factory_data = 0;\r
static uint8_t hx3695_chip_id = 0;\r
#ifdef SUPPORT_CYWEE_SERVICE\r
hrv_alg_results = tyhx_hrv_alg_send_bufdata(ppg_sensor_dat->led_data[0].data_val,data_count, gsen_data_x_fifo, gsen_data_y_fifo, gsen_data_z_fifo);\r
DEBUG_PRINTF("data_cnt:%d hrv_result:%d motion:%d p_m:%d screen_up:%d signal_quality:%d \r\n", hrv_alg_results.data_cnt,hrv_alg_results.hrv_result,hrv_alg_results.motion,hrv_alg_results.p_m,hrv_alg_results.screen_up,hrv_alg_results.signal_quality);\r
// printf("hrv:%d\n",hrv_alg_results.hrv_result);\r
+ hrv_ret = hrv_alg_results.hrv_result;\r
break;\r
}\r
default:\r
return spo2_ret;\r
}\r
\r
+uint8_t hx3695_get_hrv(void)\r
+{\r
+ return hrv_ret;\r
+}\r
\r
uint8_t hx3695_get_wear_status(void)\r
{\r
uint8_t hx3695_get_hrs_ble_swtich(void);\r
uint8_t hx3695_get_hrs(void);\r
uint8_t hx3695_get_spo2(void);\r
+uint8_t hx3695_get_hrv(void);\r
uint8_t hx3695_get_wear_status(void);\r
int32_t hx3695_get_factory_data(void);\r
void hx3695_control(char *mode,uint8_t enable);\r