LibDriver MAX30105
Loading...
Searching...
No Matches
driver_max30105_fifo.h File Reference

driver max30105 fifo header file More...

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

Go to the source code of this file.

Macros

#define MAX30105_FIFO_DEFAULT_SAMPLE_AVERAGING   MAX30105_SAMPLE_AVERAGING_8
 max30105 fifo example default definition
#define MAX30105_FIFO_DEFAULT_FIFO_ROLL   MAX30105_BOOL_TRUE
#define MAX30105_FIFO_DEFAULT_FIFO_ALMOST_FULL   0xF
#define MAX30105_FIFO_DEFAULT_MODE   MAX30105_MODE_GREEN_RED_IR
#define MAX30105_FIFO_DEFAULT_PARTICLE_SENSING_ADC_RANGE   MAX30105_PARTICLE_SENSING_ADC_RANGE_4096
#define MAX30105_FIFO_DEFAULT_PARTICLE_SENSING_SAMPLE_RATE   MAX30105_PARTICLE_SENSING_SAMPLE_RATE_100_HZ
#define MAX30105_FIFO_DEFAULT_ADC_RESOLUTION   MAX30105_ADC_RESOLUTION_18_BIT
#define MAX30105_FIFO_DEFAULT_LED_RED_PULSE_AMPLITUDE   0x7F
#define MAX30105_FIFO_DEFAULT_LED_IR_PULSE_AMPLITUDE   0x7F
#define MAX30105_FIFO_DEFAULT_LED_GREEN_PULSE_AMPLITUDE   0x7F
#define MAX30105_FIFO_DEFAULT_LED_PROXIMITY_PULSE_AMPLITUDE   0x7F
#define MAX30105_FIFO_DEFAULT_PROXIMITY_THRESHOLD   1023
#define MAX30105_FIFO_DEFAULT_SLOT1   MAX30105_LED_RED_LED1_PA
#define MAX30105_FIFO_DEFAULT_SLOT2   MAX30105_LED_IR_LED2_PA
#define MAX30105_FIFO_DEFAULT_SLOT3   MAX30105_LED_GREEN_LED3_PA
#define MAX30105_FIFO_DEFAULT_SLOT4   MAX30105_LED_NONE
#define MAX30105_FIFO_DEFAULT_DIE_TEMPERATURE   MAX30105_BOOL_FALSE
#define MAX30105_FIFO_DEFAULT_INTERRUPT_DATA_RDY_EN   MAX30105_BOOL_FALSE
#define MAX30105_FIFO_DEFAULT_INTERRUPT_ALC_OVF_EN   MAX30105_BOOL_TRUE
#define MAX30105_FIFO_DEFAULT_INTERRUPT_DIE_TEMP_RDY_EN   MAX30105_BOOL_TRUE

Functions

uint8_t max30105_fifo_irq_handler (void)
 fifo example irq handler
uint8_t max30105_fifo_init (void(*fifo_receive_callback)(uint8_t type))
 fifo example init
uint8_t max30105_fifo_deinit (void)
 fifo example deinit
uint8_t max30105_fifo_read (uint32_t *raw_red, uint32_t *raw_ir, uint32_t *raw_green, uint8_t *len)
 read the data

Detailed Description

driver max30105 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
2022-01-01

history

Date Version Author Description
2022/01/01 1.0 Shifeng Li first upload

Definition in file driver_max30105_fifo.h.