MAX30001G 1.4.2
Arduino library for MAX30001G ECG and BIOZ AFE
Loading...
Searching...
No Matches
max30001g_typedefs.h
Go to the documentation of this file.
1/******************************************************************************************************/
2/* Structures */
3/******************************************************************************************************/
4
5#ifndef MAX30001G_TYPEDEFS_H
6#define MAX30001G_TYPEDEFS_H
7
8#include <stdint.h>
9#include "max30001g_defs.h"
10
17 float magnitude;
18 float phase;
19};
20
30
40 bool spi_ok;
41 uint32_t info_reg;
42 uint32_t status_reg;
45};
46
56
67
142
149 bool valid;
150 uint32_t en_int1;
151 uint32_t en_int2;
152 uint32_t mngr_int;
153 uint32_t mngr_dyn;
154 uint32_t cnfg_gen;
155 uint32_t cnfg_cal;
156 uint32_t cnfg_emux;
157 uint32_t cnfg_ecg;
158 uint32_t cnfg_bmux;
159 uint32_t cnfg_bioz;
160 uint32_t cnfg_bioz_lc;
161 uint32_t cnfg_rtor1;
162 uint32_t cnfg_rtor2;
163};
164
165#endif // MAX30001G_TYPEDEFS_H
#define MAX30001_BIOZ_NUM_FREQUENCIES
Definition max30001g_defs.h:11
BIOZScanPhaseRange
BIOZ scan phase-density selection.
Definition max30001g_typedefs.h:52
@ BIOZ_SCAN_PHASE_FULL
Definition max30001g_typedefs.h:53
@ BIOZ_SCAN_PHASE_REDUCED
Definition max30001g_typedefs.h:54
BIOZScanAHPFMode
BIOZ scan analog high-pass filter selection mode.
Definition max30001g_typedefs.h:62
@ BIOZ_SCAN_AHPF_BYPASS
Definition max30001g_typedefs.h:65
@ BIOZ_SCAN_AHPF_FIXED
Definition max30001g_typedefs.h:64
@ BIOZ_SCAN_AHPF_DYNAMIC
Definition max30001g_typedefs.h:63
BIOZScanConfig configuration structure fields:
Definition max30001g_typedefs.h:92
BIOZScanConfig()
Definition max30001g_typedefs.h:117
bool use_internal_resistor
Definition max30001g_typedefs.h:96
uint8_t internal_bist_ahpf
Definition max30001g_typedefs.h:110
uint8_t freq_end_index
Definition max30001g_typedefs.h:106
bool fourleads
Definition max30001g_typedefs.h:95
int32_t initial_current_nA
Definition max30001g_typedefs.h:111
uint8_t fixed_ahpf
Definition max30001g_typedefs.h:109
bool autorange_enable
Definition max30001g_typedefs.h:113
float high_target_fraction
Definition max30001g_typedefs.h:100
BIOZScanPhaseRange phase_range
Definition max30001g_typedefs.h:107
uint8_t settle_samples
Definition max30001g_typedefs.h:114
float target_fraction
Definition max30001g_typedefs.h:101
int32_t max_current_nA
Definition max30001g_typedefs.h:112
uint8_t freq_start_index
Definition max30001g_typedefs.h:105
float low_target_fraction
Definition max30001g_typedefs.h:99
BIOZScanAHPFMode ahpf_mode
Definition max30001g_typedefs.h:108
float outlier_sigma
Definition max30001g_typedefs.h:103
uint8_t outlier_min_samples
Definition max30001g_typedefs.h:102
uint8_t avg
Definition max30001g_typedefs.h:93
uint16_t internal_resistor_ohm
Definition max30001g_typedefs.h:97
uint16_t timeout_margin_ms
Definition max30001g_typedefs.h:104
bool fast
Definition max30001g_typedefs.h:94
uint8_t max_retries
Definition max30001g_typedefs.h:98
uint8_t current_change_settle_samples
Definition max30001g_typedefs.h:115
ConfigSnapshot structure for storing/restoring MAX30001G register configurations.
Definition max30001g_typedefs.h:148
uint32_t cnfg_rtor2
Definition max30001g_typedefs.h:162
uint32_t en_int2
Definition max30001g_typedefs.h:151
uint32_t cnfg_bioz
Definition max30001g_typedefs.h:159
uint32_t en_int1
Definition max30001g_typedefs.h:150
uint32_t cnfg_gen
Definition max30001g_typedefs.h:154
uint32_t cnfg_emux
Definition max30001g_typedefs.h:156
uint32_t mngr_dyn
Definition max30001g_typedefs.h:153
uint32_t mngr_int
Definition max30001g_typedefs.h:152
uint32_t cnfg_ecg
Definition max30001g_typedefs.h:157
uint32_t cnfg_bmux
Definition max30001g_typedefs.h:158
uint32_t cnfg_cal
Definition max30001g_typedefs.h:155
uint32_t cnfg_bioz_lc
Definition max30001g_typedefs.h:160
bool valid
Definition max30001g_typedefs.h:149
uint32_t cnfg_rtor1
Definition max30001g_typedefs.h:161
HealthCheckResult structure for storing health check results.
Definition max30001g_typedefs.h:39
bool spi_ok
Definition max30001g_typedefs.h:40
bool pll_unlocked
Definition max30001g_typedefs.h:43
uint32_t info_reg
Definition max30001g_typedefs.h:41
uint32_t status_reg
Definition max30001g_typedefs.h:42
bool fault_present
Definition max30001g_typedefs.h:44
ImpedanceModel structure for storing impedance measurement results.
Definition max30001g_typedefs.h:16
float phase
Definition max30001g_typedefs.h:18
float magnitude
Definition max30001g_typedefs.h:17
ImpedanceSpectrum structure for storing one full BIOZ sweep.
Definition max30001g_typedefs.h:25
float magnitude[MAX30001_BIOZ_NUM_FREQUENCIES]
Definition max30001g_typedefs.h:27
float phase[MAX30001_BIOZ_NUM_FREQUENCIES]
Definition max30001g_typedefs.h:28
float frequency[MAX30001_BIOZ_NUM_FREQUENCIES]
Definition max30001g_typedefs.h:26