从模块读取了数据,还需要一系列算法才能利用这些数据

This commit is contained in:
2021-08-22 00:35:34 +08:00
parent c19c78ac1a
commit ea477914a6
20 changed files with 14345 additions and 13541 deletions
+27
View File
@@ -11,6 +11,33 @@
#include "windows.h"
#include "LCD.h"
#define MAX30102_Device_address 0xAE
//register addresses
#define REG_INTR_STATUS_1 0x00
#define REG_INTR_STATUS_2 0x01
#define REG_INTR_ENABLE_1 0x02
#define REG_INTR_ENABLE_2 0x03
#define REG_FIFO_WR_PTR 0x04
#define REG_OVF_COUNTER 0x05
#define REG_FIFO_RD_PTR 0x06
#define REG_FIFO_DATA 0x07
#define REG_FIFO_CONFIG 0x08
#define REG_MODE_CONFIG 0x09
#define REG_SPO2_CONFIG 0x0A
#define REG_LED1_PA 0x0C
#define REG_LED2_PA 0x0D
#define REG_PILOT_PA 0x10
#define REG_MULTI_LED_CTRL1 0x11
#define REG_MULTI_LED_CTRL2 0x12
#define REG_TEMP_INTR 0x1F
#define REG_TEMP_FRAC 0x20
#define REG_TEMP_CONFIG 0x21
#define REG_PROX_INT_THRESH 0x30
#define REG_REV_ID 0xFE
#define REG_PART_ID 0xFF
#define SAMPLES_PER_SECOND 100 //¼ì²âƵÂÊ
void APP_blood_init(window *a_window);
void APP_blood_loop();