MAX30100 pulse and oximeter sensor library

Ported from Arduino library

Committer:
kohlerba
Date:
Tue Nov 21 20:34:45 2017 +0000
Revision:
0:0307ce7b7033
MAX30100 sensor

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kohlerba 0:0307ce7b7033 1 #ifndef MAX30100_REG_H
kohlerba 0:0307ce7b7033 2 #define MAX30100_REG_H
kohlerba 0:0307ce7b7033 3
kohlerba 0:0307ce7b7033 4 //definitions
kohlerba 0:0307ce7b7033 5 #define MAX30100_ADDRESS 0xAE
kohlerba 0:0307ce7b7033 6
kohlerba 0:0307ce7b7033 7 // Registers
kohlerba 0:0307ce7b7033 8 #define MAX30100_INT_STATUS 0x00 // Which interrupts are tripped
kohlerba 0:0307ce7b7033 9 #define MAX30100_INT_ENABLE 0x01 // Which interrupts are active
kohlerba 0:0307ce7b7033 10 #define MAX30100_FIFO_WR_PTR 0x02 // Where data is being written
kohlerba 0:0307ce7b7033 11 #define MAX30100_OVRFLOW_CTR 0x03 // Number of lost samples
kohlerba 0:0307ce7b7033 12 #define MAX30100_FIFO_RD_PTR 0x04 // Where to read from
kohlerba 0:0307ce7b7033 13 #define MAX30100_FIFO_DATA 0x05 // Ouput data buffer
kohlerba 0:0307ce7b7033 14 #define MAX30100_MODE_CONFIG 0x06 // Control register
kohlerba 0:0307ce7b7033 15 #define MAX30100_SPO2_CONFIG 0x07 // Oximetry settings
kohlerba 0:0307ce7b7033 16 #define MAX30100_LED_CONFIG 0x09 // Pulse width and power of LEDs
kohlerba 0:0307ce7b7033 17 #define MAX30100_TEMP_INTG 0x16 // Temperature value, whole number
kohlerba 0:0307ce7b7033 18 #define MAX30100_TEMP_FRAC 0x17 // Temperature value, fraction
kohlerba 0:0307ce7b7033 19 #define MAX30100_REV_ID 0xFE // Part revision
kohlerba 0:0307ce7b7033 20 #define MAX30100_PART_ID 0xFF // Part ID, normally 0x11
kohlerba 0:0307ce7b7033 21
kohlerba 0:0307ce7b7033 22 #define POR_PART_ID 0x11
kohlerba 0:0307ce7b7033 23
kohlerba 0:0307ce7b7033 24 #endif