LibDriver MAX30102
Loading...
Searching...
No Matches
driver_max30102_fifo.h File Reference

driver max30102 fifo header file More...

Include dependency graph for driver_max30102_fifo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX30102_FIFO_DEFAULT_SAMPLE_AVERAGING   MAX30102_SAMPLE_AVERAGING_8
 max30102 fifo example default definition
#define MAX30102_FIFO_DEFAULT_FIFO_ROLL   MAX30102_BOOL_TRUE
#define MAX30102_FIFO_DEFAULT_FIFO_ALMOST_FULL   0xF
#define MAX30102_FIFO_DEFAULT_MODE   MAX30102_MODE_SPO2
#define MAX30102_FIFO_DEFAULT_SPO2_ADC_RANGE   MAX30102_SPO2_ADC_RANGE_4096
#define MAX30102_FIFO_DEFAULT_SPO2_SAMPLE_RATE   MAX30102_SPO2_SAMPLE_RATE_100_HZ
#define MAX30102_FIFO_DEFAULT_ADC_RESOLUTION   MAX30102_ADC_RESOLUTION_18_BIT
#define MAX30102_FIFO_DEFAULT_LED_RED_PULSE_AMPLITUDE   0x7F
#define MAX30102_FIFO_DEFAULT_LED_IR_PULSE_AMPLITUDE   0x7F
#define MAX30102_FIFO_DEFAULT_SLOT1   MAX30102_LED_RED
#define MAX30102_FIFO_DEFAULT_SLOT2   MAX30102_LED_IR
#define MAX30102_FIFO_DEFAULT_SLOT3   MAX30102_LED_NONE
#define MAX30102_FIFO_DEFAULT_SLOT4   MAX30102_LED_NONE
#define MAX30102_FIFO_DEFAULT_DIE_TEMPERATURE   MAX30102_BOOL_FALSE
#define MAX30102_FIFO_DEFAULT_INTERRUPT_PPG_RDY_EN   MAX30102_BOOL_FALSE
#define MAX30102_FIFO_DEFAULT_INTERRUPT_ALC_OVF_EN   MAX30102_BOOL_TRUE
#define MAX30102_FIFO_DEFAULT_INTERRUPT_DIE_TEMP_RDY_EN   MAX30102_BOOL_TRUE

Functions

uint8_t max30102_fifo_irq_handler (void)
 fifo example irq handler
uint8_t max30102_fifo_init (void(*fifo_receive_callback)(uint8_t type))
 fifo example init
uint8_t max30102_fifo_deinit (void)
 fifo example deinit
uint8_t max30102_fifo_read (uint32_t *raw_red, uint32_t *raw_ir, uint8_t *len)
 read the data

Detailed Description

driver max30102 fifo header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2021-11-13

history

Date Version Author Description
2021/11/13 1.0 Shifeng Li first upload

Definition in file driver_max30102_fifo.h.