1#ifndef _SPARKFUN_BIO_SENSOR_HUB_LIBRARY_H_
2#define _SPARKFUN_BIO_SENSOR_HUB_LIBRARY_H_
8#define WRITE_FIFO_INPUT_BYTE 0x04
14#define BOOTLOADER_MODE 0x08
16#define INCORR_PARAM 0xEE
18#define CONFIGURATION_REGISTER 0x0A
19#define PULSE_MASK 0xFC
20#define READ_PULSE_MASK 0x03
22#define READ_SAMP_MASK 0x1C
24#define READ_ADC_MASK 0x60
26#define ENABLE_CMD_DELAY 45
28#define MAXFAST_ARRAY_SIZE 6
29#define MAXFAST_EXTENDED_DATA 5
30#define MAX30101_LED_ARRAY 12
32#define SET_FORMAT 0x00
33#define READ_FORMAT 0x01
34#define WRITE_SET_THRESHOLD 0x01
35#define WRITE_EXTERNAL_TO_FIFO 0x00
299 uint8_t
bpmArrTwo[MAXFAST_ARRAY_SIZE + MAXFAST_EXTENDED_DATA];
301 uint8_t
bpmSenArr[MAXFAST_ARRAY_SIZE + MAX30101_LED_ARRAY];
302 uint8_t
bpmSenArrTwo[MAXFAST_ARRAY_SIZE + MAXFAST_EXTENDED_DATA + MAX30101_LED_ARRAY];
316 uint8_t
begin( TwoWire &wirePort = Wire);
657 uint8_t
writeLongBytes(uint8_t, uint8_t, uint8_t, int32_t _writeVal[3]);
697 uint8_t*
readFillArray(uint8_t, uint8_t, uint8_t, uint8_t array[]);
DUMP_REGISTER_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:188
@ DUMP_REGISTER_MAX30101
Definition: SparkFun_Bio_Sensor_Hub_Library.h:190
@ DUMP_REGISTER_ACCELEROMETER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:191
READ_REGISTER_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:172
@ READ_ACCELEROMETER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:175
@ READ_MAX30101
Definition: SparkFun_Bio_Sensor_Hub_Library.h:174
DEVICE_MODE_WRITE_BYTES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:121
@ RESET
Definition: SparkFun_Bio_Sensor_Hub_Library.h:124
@ ENTER_BOOTLOADER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:125
@ EXIT_BOOTLOADER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:123
const uint8_t BIO_ADDRESS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:37
FIFO_EXTERNAL_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:153
@ READ_NUM_SAMPLES_INPUT
Definition: SparkFun_Bio_Sensor_Hub_Library.h:158
@ READ_NUM_SAMPLES_SENSOR
Definition: SparkFun_Bio_Sensor_Hub_Library.h:159
@ READ_INPUT_DATA
Definition: SparkFun_Bio_Sensor_Hub_Library.h:156
@ READ_SENSOR_DATA
Definition: SparkFun_Bio_Sensor_Hub_Library.h:157
@ SAMPLE_SIZE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:155
READ_AGC_ALGO_WRITE_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:247
@ READ_AGC_PERC_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:249
@ READ_AGC_SENSITIVITY_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:251
@ READ_MAX_FAST_COEF_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:253
@ READ_AGC_STEP_SIZE_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:250
@ READ_AGC_NUM_SAMPLES_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:252
FAMILY_REGISTER_BYTES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:90
@ CHANGE_ALGORITHM_CONFIG
Definition: SparkFun_Bio_Sensor_Hub_Library.h:106
@ ENABLE_SENSOR
Definition: SparkFun_Bio_Sensor_Hub_Library.h:104
@ READ_REGISTER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:101
@ READ_ALGORITHM_CONFIG
Definition: SparkFun_Bio_Sensor_Hub_Library.h:107
@ READ_SENSOR_MODE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:105
@ HUB_STATUS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:92
@ READ_ATTRIBUTES_AFE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:102
@ READ_DEVICE_MODE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:94
@ OUTPUT_MODE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:95
@ DUMP_REGISTERS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:103
@ READ_OUTPUT_MODE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:96
@ SET_DEVICE_MODE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:93
@ BOOTLOADER_FLASH
Definition: SparkFun_Bio_Sensor_Hub_Library.h:109
@ WRITE_INPUT
Definition: SparkFun_Bio_Sensor_Hub_Library.h:99
@ BOOTLOADER_INFO
Definition: SparkFun_Bio_Sensor_Hub_Library.h:110
@ ENABLE_ALGORITHM
Definition: SparkFun_Bio_Sensor_Hub_Library.h:108
@ READ_DATA_INPUT
Definition: SparkFun_Bio_Sensor_Hub_Library.h:98
@ WRITE_REGISTER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:100
@ IDENTITY
Definition: SparkFun_Bio_Sensor_Hub_Library.h:111
@ READ_DATA_OUTPUT
Definition: SparkFun_Bio_Sensor_Hub_Library.h:97
READ_SENSOR_ENABLE_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:204
@ READ_ENABLE_MAX30101
Definition: SparkFun_Bio_Sensor_Hub_Library.h:206
@ READ_ENABLE_ACCELEROMETER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:207
ALGORITHM_CONFIG_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:212
@ SET_AVG_SAMPLES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:217
@ SET_SENSITIVITY
Definition: SparkFun_Bio_Sensor_Hub_Library.h:216
@ SET_STEP_SIZE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:215
@ SET_TARG_PERC
Definition: SparkFun_Bio_Sensor_Hub_Library.h:214
@ SET_PULSE_OX_COEF
Definition: SparkFun_Bio_Sensor_Hub_Library.h:218
SENSOR_ENABLE_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:196
@ ENABLE_MAX30101
Definition: SparkFun_Bio_Sensor_Hub_Library.h:198
@ ENABLE_ACCELEROMETER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:199
WRITE_REGISTER_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:164
@ WRITE_MAX30101
Definition: SparkFun_Bio_Sensor_Hub_Library.h:166
@ WRITE_ACCELEROMETER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:167
ALGORITHM_MODE_ENABLE_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:258
@ ENABLE_WHRM_ALGO
Definition: SparkFun_Bio_Sensor_Hub_Library.h:261
@ ENABLE_AGC_ALGO
Definition: SparkFun_Bio_Sensor_Hub_Library.h:260
GET_AFE_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:180
@ RETRIEVE_AFE_ACCELEROMETER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:183
@ RETRIEVE_AFE_MAX30101
Definition: SparkFun_Bio_Sensor_Hub_Library.h:182
IDENTITY_INDEX_BYTES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:285
@ READ_SENSOR_HUB_VERS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:288
@ READ_MCU_TYPE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:287
@ READ_ALGO_VERS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:289
OUTPUT_MODE_WRITE_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:131
@ SENSOR_AND_ALGORITHM
Definition: SparkFun_Bio_Sensor_Hub_Library.h:136
@ PAUSE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:133
@ ALGO_DATA
Definition: SparkFun_Bio_Sensor_Hub_Library.h:135
@ PAUSE_TWO
Definition: SparkFun_Bio_Sensor_Hub_Library.h:137
@ SENSOR_DATA
Definition: SparkFun_Bio_Sensor_Hub_Library.h:134
@ ALGO_COUNTER_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:139
@ SENSOR_ALGO_COUNTER
Definition: SparkFun_Bio_Sensor_Hub_Library.h:140
@ SENSOR_COUNTER_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:138
READ_ALGORITHM_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:235
@ READ_AGC_SENSITIVITY
Definition: SparkFun_Bio_Sensor_Hub_Library.h:239
@ READ_AGC_STEP_SIZE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:238
@ READ_AGC_PERCENTAGE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:237
@ READ_MAX_FAST_COEF
Definition: SparkFun_Bio_Sensor_Hub_Library.h:241
@ READ_AGC_NUM_SAMPLES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:240
BOOTLOADER_INFO_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:277
@ BOOTLOADER_VERS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:279
@ PAGE_SIZE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:280
ALGO_AGC_WRITE_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:224
@ AGC_SENSITIVITY_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:228
@ AGC_GAIN_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:226
@ AGC_STEP_SIZE_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:227
@ AGC_NUM_SAMP_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:229
@ MAXIMFAST_COEF_ID
Definition: SparkFun_Bio_Sensor_Hub_Library.h:230
FIFO_OUTPUT_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:145
@ NUM_SAMPLES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:147
@ READ_DATA
Definition: SparkFun_Bio_Sensor_Hub_Library.h:148
BOOTLOADER_FLASH_INDEX_BYTE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:266
@ SEND_PAGE_VALUE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:272
@ SET_NUM_PAGES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:270
@ SET_AUTH_BYTES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:269
@ SET_INIT_VECTOR_BYTES
Definition: SparkFun_Bio_Sensor_Hub_Library.h:268
@ ERASE_FLASH
Definition: SparkFun_Bio_Sensor_Hub_Library.h:271
READ_STATUS_BYTE_VALUE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:71
@ ERR_DATA_FORMAT
Definition: SparkFun_Bio_Sensor_Hub_Library.h:76
@ ERR_BTLDR_GENERAL
Definition: SparkFun_Bio_Sensor_Hub_Library.h:79
@ ERR_UNAVAIL_CMD
Definition: SparkFun_Bio_Sensor_Hub_Library.h:74
@ ERR_BTLDR_AUTH
Definition: SparkFun_Bio_Sensor_Hub_Library.h:81
@ ERR_UNKNOWN
Definition: SparkFun_Bio_Sensor_Hub_Library.h:83
@ ERR_INPUT_VALUE
Definition: SparkFun_Bio_Sensor_Hub_Library.h:77
@ ERR_BTLDR_INVALID_APP
Definition: SparkFun_Bio_Sensor_Hub_Library.h:82
@ ERR_TRY_AGAIN
Definition: SparkFun_Bio_Sensor_Hub_Library.h:78
@ SUCCESS
Definition: SparkFun_Bio_Sensor_Hub_Library.h:73
@ ERR_BTLDR_CHECKSUM
Definition: SparkFun_Bio_Sensor_Hub_Library.h:80
@ ERR_UNAVAIL_FUNC
Definition: SparkFun_Bio_Sensor_Hub_Library.h:75
Definition: SparkFun_Bio_Sensor_Hub_Library.h:294
uint8_t readAlgoRange()
This function reads and returns the currently set target percentage of the full-scale ADC range that ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1088
uint8_t bpmArrTwo[MAXFAST_ARRAY_SIZE+MAXFAST_EXTENDED_DATA]
Definition: SparkFun_Bio_Sensor_Hub_Library.h:299
uint8_t * dumpRegisterMAX30101(uint8_t, uint8_t regArray[255])
This function returns all registers and register values sequentially of the MAX30101 sensor: register...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:950
version readAlgorithmVersion()
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1277
uint8_t numSamplesExternalSensor()
This function adds support for the acceleromter that is NOT included on SparkFun's product,...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:831
uint8_t _userSelectedMode
Definition: SparkFun_Bio_Sensor_Hub_Library.h:621
uint8_t configSensor()
This function sets very basic settings to get LED count values from the MAX30101. Sensor data include...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:164
uint32_t readLongByte(uint8_t, uint8_t, uint8_t)
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1549
uint8_t accelControl(uint8_t)
This function enables the Accelerometer.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:743
uint8_t readSensorHubStatus()
The following function checks the status of the FIFO.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:109
uint8_t readByte(uint8_t, uint8_t, uint8_t)
uint8_t maximFastAlgoControl(uint8_t)
This function enables (one) or disables (zero) the wrist heart rate monitor algorithm.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1174
uint8_t writeLongBytes(uint8_t, uint8_t, uint8_t, int32_t _writeVal[3])
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1401
uint8_t beginBootloader(TwoWire &wirePort=Wire)
The following function puts the MAX32664 into bootloader mode. To place the MAX32664 into bootloader ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:84
uint8_t setAlgoRange(uint8_t)
This function sets the target percentage of the full-scale ADC range that the automatic gain control ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:984
bioData readSensorBpm()
This function takes the information of both the LED value and the biometric data from the MAX32664's ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:354
uint16_t readPulseWidth()
This function reads the CONFIGURATION_REGISTER (0x0A), bits [1:0] from the MAX30101 Sensor....
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:505
int32_t * readMultipleBytes(uint8_t, uint8_t, uint8_t, uint8_t, int32_t *)
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1583
uint8_t readRegisterAccel(uint8_t)
This function reads the given register address for the MAX30101 Sensor and returns the values at that...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:888
uint8_t getMcuType()
The following function returns a byte that signifies the microcontoller that is in communcation with ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:671
void writeRegisterMAX30101(uint8_t, uint8_t)
This function writes the given register value at the given register address for the MAX30101 sensor a...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:847
uint8_t begin(TwoWire &wirePort=Wire)
The following function initializes the sensor. To place the MAX32664 into application mode,...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:56
uint8_t setSampleRate(uint16_t)
This function changes the sample rate of the MAX30101 sensor. The sample rate is affected by the set ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:532
uint8_t enableWrite(uint8_t, uint8_t, uint8_t)
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1307
uint8_t * getDataOutFifo(uint8_t data[])
This function returns the data in the FIFO.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:818
sensorAttr getAfeAttributesAccelerometer()
This function retrieves the attributes of the AFE (Analog Front End) of the Accelerometer....
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:924
version readBootloaderVers()
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1223
uint8_t writeByte(uint8_t, uint8_t, uint8_t, uint8_t)
uint8_t * dumpRegisterAccelerometer(uint8_t, uint8_t regArray[])
This function returns all registers and register values sequentially of the Accelerometer: register z...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:969
int32_t * readMaximFastCoef(int32_t coefArr[3])
This function reads the maximum age for the wrist heart rate monitor (WHRM) algorithm....
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1137
uint8_t setMaximFastCoef(int32_t, int32_t, int32_t)
This function takes three values that are used as the Sp02 coefficients. These three values are multi...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1069
version readSensorHubVersion()
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1250
uint16_t readAdcRange()
MAX30101 Register: CONFIGURATION_REGISTER (0x0A), bits [6:5] This function returns the set ADC range ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:624
uint8_t setFifoThreshold(uint8_t)
This function changes the threshold for the FIFO interrupt bit/pin. The interrupt pin is the MFIO pin...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:788
bioData readBpm()
This function takes the 8 bytes from the FIFO buffer related to the wrist heart rate algortihm: heart...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:237
uint8_t writeByte(uint8_t, uint8_t, uint8_t)
uint8_t configBpm(uint8_t)
This function sets very basic settings to get sensor and biometric data. The biometric data includes ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:124
sensorAttr getAfeAttributesMAX30101()
This function retrieves the attributes of the AFE (Analog Front End) of the MAX30101 sensor....
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:902
uint8_t bpmSenArr[MAXFAST_ARRAY_SIZE+MAX30101_LED_ARRAY]
Definition: SparkFun_Bio_Sensor_Hub_Library.h:301
uint8_t readMAX30101State()
This function checks if the MAX30101 is enabled or not.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:731
uint8_t agcAlgoControl(uint8_t)
This function enables (one) or disables (zero) the automatic gain control algorithm.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1153
uint8_t _resetPin
Definition: SparkFun_Bio_Sensor_Hub_Library.h:617
uint8_t readAlgoSensitivity()
This function returns the sensitivity (percentage) of the automatic gain control.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1110
uint8_t max30101Control(uint8_t)
This function enables the MAX30101.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:710
uint8_t setAdcRange(uint16_t)
MAX30101 Register: CONFIGURATION_REGISTER (0x0A), bits [6:5] This functions sets the dynamic range of...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:597
uint32_t _writeCoefArr[3]
Definition: SparkFun_Bio_Sensor_Hub_Library.h:620
uint8_t _mfioPin
Definition: SparkFun_Bio_Sensor_Hub_Library.h:618
uint16_t readIntByte(uint8_t, uint8_t, uint8_t)
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1517
uint8_t setAlgoSensitivity(uint8_t)
This function changes the sensitivity of the AGC algorithm.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1025
uint8_t _address
Definition: SparkFun_Bio_Sensor_Hub_Library.h:619
uint8_t readByte(uint8_t, uint8_t)
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1431
uint8_t writeByte(uint8_t, uint8_t, uint8_t, uint16_t)
uint8_t bpmArr[MAXFAST_ARRAY_SIZE]
Definition: SparkFun_Bio_Sensor_Hub_Library.h:298
uint8_t configSensorBpm(uint8_t)
This function sets very basic settings to get sensor and biometric data. Sensor data includes 24 bit ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:199
uint8_t setOutputMode(uint8_t)
This function enables the Accelerometer.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:765
bool setNumPages(uint8_t)
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1195
uint8_t bpmSenArrTwo[MAXFAST_ARRAY_SIZE+MAXFAST_EXTENDED_DATA+MAX30101_LED_ARRAY]
Definition: SparkFun_Bio_Sensor_Hub_Library.h:302
uint8_t setPulseWidth(uint16_t)
This function modifies the pulse width of the MAX30101 LEDs. All of the LEDs are modified to the same...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:478
TwoWire * _i2cPort
Definition: SparkFun_Bio_Sensor_Hub_Library.h:625
bioData readSensor()
This function takes 9 bytes of LED values from the MAX30101 associated with the RED,...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:329
int32_t getBootloaderInf()
This function checks the version number of the bootloader on the chip and returns a four bytes: Major...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:687
uint8_t senArr[MAX30101_LED_ARRAY]
Definition: SparkFun_Bio_Sensor_Hub_Library.h:300
uint8_t setOperatingMode(uint8_t)
The following function is an alternate way to set the mode of the of MAX32664. It can take three para...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:646
uint8_t _sampleRate
Definition: SparkFun_Bio_Sensor_Hub_Library.h:622
uint8_t readRegisterMAX30101(uint8_t)
This function reads the given register address for the MAX30101 Sensor and returns the values at that...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:874
uint16_t readSampleRate()
This function reads the CONFIGURATION_REGISTER (0x0A), bits [4:2] from the MAX30101 Sensor....
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:562
uint8_t setAlgoSamples(uint8_t)
This function changes the number of samples that are averaged. It takes a paramater of zero to 255.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1046
bool eraseFlash()
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1204
void writeRegisterAccel(uint8_t, uint8_t)
This function writes the given register value at the given register address for the Accelerometer and...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:861
uint8_t * readFillArray(uint8_t, uint8_t, uint8_t, uint8_t array[])
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1484
uint8_t readAlgoStepSize()
This function returns the step size toward the target for the AGC algorithm. It returns a value betwe...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1100
uint8_t readAlgoSamples()
This function reads the number of samples that are averaged.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1121
uint8_t numSamplesOutFifo()
This function returns the number of samples available in the FIFO.
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:805
uint8_t setAlgoStepSize(uint8_t)
This function changes the step size toward the target for the AGC algorithm. It takes a paramater of ...
Definition: SparkFun_Bio_Sensor_Hub_Library.cpp:1005
Definition: SparkFun_Bio_Sensor_Hub_Library.h:39
uint32_t redLed
Definition: SparkFun_Bio_Sensor_Hub_Library.h:42
uint8_t confidence
Definition: SparkFun_Bio_Sensor_Hub_Library.h:44
uint32_t irLed
Definition: SparkFun_Bio_Sensor_Hub_Library.h:41
float rValue
Definition: SparkFun_Bio_Sensor_Hub_Library.h:47
uint16_t heartRate
Definition: SparkFun_Bio_Sensor_Hub_Library.h:43
int8_t extStatus
Definition: SparkFun_Bio_Sensor_Hub_Library.h:48
uint8_t reserveOne
Definition: SparkFun_Bio_Sensor_Hub_Library.h:49
uint8_t status
Definition: SparkFun_Bio_Sensor_Hub_Library.h:46
uint16_t oxygen
Definition: SparkFun_Bio_Sensor_Hub_Library.h:45
uint8_t resserveTwo
Definition: SparkFun_Bio_Sensor_Hub_Library.h:50
Definition: SparkFun_Bio_Sensor_Hub_Library.h:62
uint8_t availRegisters
Definition: SparkFun_Bio_Sensor_Hub_Library.h:65
uint8_t byteWord
Definition: SparkFun_Bio_Sensor_Hub_Library.h:64
Definition: SparkFun_Bio_Sensor_Hub_Library.h:54
uint8_t minor
Definition: SparkFun_Bio_Sensor_Hub_Library.h:57
uint8_t major
Definition: SparkFun_Bio_Sensor_Hub_Library.h:56
uint8_t revision
Definition: SparkFun_Bio_Sensor_Hub_Library.h:58