![]() |
LibDriver MAX30205
|
driver max30205 source file More...
#include "driver_max30205.h"Go to the source code of this file.
Macros | |
| #define | CHIP_NAME "Maxim Integrated MAX30205" |
| chip information definition | |
| #define | MANUFACTURER_NAME "Maxim Integrated" |
| #define | SUPPLY_VOLTAGE_MIN 2.7f |
| #define | SUPPLY_VOLTAGE_MAX 3.3f |
| #define | MAX_CURRENT 20.0f |
| #define | TEMPERATURE_MIN 0.0f |
| #define | TEMPERATURE_MAX 50.0f |
| #define | DRIVER_VERSION 2000 |
| #define | MAX30205_REG_TEMP 0x00 |
| chip register definition | |
| #define | MAX30205_REG_CONF 0x01 |
| #define | MAX30205_REG_THYST 0x02 |
| #define | MAX30205_REG_TOS 0x03 |
Functions | |
| uint8_t | max30205_init (max30205_handle_t *handle) |
| initialize the chip | |
| uint8_t | max30205_deinit (max30205_handle_t *handle) |
| close the chip | |
| uint8_t | max30205_set_addr_pin (max30205_handle_t *handle, max30205_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | max30205_get_addr_pin (max30205_handle_t *handle, max30205_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | max30205_set_data_format (max30205_handle_t *handle, max30205_data_format_t format) |
| set the chip data format | |
| uint8_t | max30205_get_data_format (max30205_handle_t *handle, max30205_data_format_t *format) |
| get the chip data format | |
| uint8_t | max30205_set_interrupt_mode (max30205_handle_t *handle, max30205_interrupt_mode_t mode) |
| set the chip interrupt mode | |
| uint8_t | max30205_get_interrupt_mode (max30205_handle_t *handle, max30205_interrupt_mode_t *mode) |
| get the chip interrupt mode | |
| uint8_t | max30205_set_fault_queue (max30205_handle_t *handle, max30205_fault_queue_t fault_queue) |
| set the chip fault queue | |
| uint8_t | max30205_get_fault_queue (max30205_handle_t *handle, max30205_fault_queue_t *fault_queue) |
| get the chip fault queue | |
| uint8_t | max30205_set_pin_polarity (max30205_handle_t *handle, max30205_pin_polarity_t polarity) |
| set the interrupt pin polarity | |
| uint8_t | max30205_get_pin_polarity (max30205_handle_t *handle, max30205_pin_polarity_t *polarity) |
| get the interrupt pin polarity | |
| uint8_t | max30205_set_bus_timeout (max30205_handle_t *handle, max30205_bus_timeout_t bus_timeout) |
| set the iic bus timeout | |
| uint8_t | max30205_get_bus_timeout (max30205_handle_t *handle, max30205_bus_timeout_t *bus_timeout) |
| get the iic bus timeout | |
| uint8_t | max30205_start_continuous_read (max30205_handle_t *handle) |
| start reading data | |
| uint8_t | max30205_stop_continuous_read (max30205_handle_t *handle) |
| stop reading data | |
| uint8_t | max30205_continuous_read (max30205_handle_t *handle, int16_t *raw, float *s) |
| read data continuously | |
| uint8_t | max30205_single_read (max30205_handle_t *handle, int16_t *raw, float *s) |
| read data once | |
| uint8_t | max30205_set_interrupt_low_threshold (max30205_handle_t *handle, int16_t threshold) |
| set the chip interrupt low threshold | |
| uint8_t | max30205_get_interrupt_low_threshold (max30205_handle_t *handle, int16_t *threshold) |
| get the chip interrupt low threshold | |
| uint8_t | max30205_set_interrupt_high_threshold (max30205_handle_t *handle, int16_t threshold) |
| set the chip interrupt high threshold | |
| uint8_t | max30205_get_interrupt_high_threshold (max30205_handle_t *handle, int16_t *threshold) |
| get the chip interrupt high threshold | |
| uint8_t | max30205_convert_to_register (max30205_handle_t *handle, float s, int16_t *reg) |
| convert a temperature value to a register raw data | |
| uint8_t | max30205_convert_to_data (max30205_handle_t *handle, int16_t reg, float *s) |
| convert a register raw data to a converted temperature data | |
| uint8_t | max30205_power_down (max30205_handle_t *handle) |
| chip powers down | |
| uint8_t | max30205_set_reg (max30205_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
| set the chip register | |
| uint8_t | max30205_get_reg (max30205_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len) |
| get the chip register | |
| uint8_t | max30205_info (max30205_info_t *info) |
| get chip's information | |
driver max30205 source 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.
| Date | Version | Author | Description |
|---|---|---|---|
| 2021/03/13 | 2.0 | Shifeng Li | format the code |
| 2020/11/25 | 1.0 | Shifeng Li | first upload |
Definition in file driver_max30205.c.
| #define CHIP_NAME "Maxim Integrated MAX30205" |
| #define DRIVER_VERSION 2000 |
driver version
Definition at line 50 of file driver_max30205.c.
| #define MANUFACTURER_NAME "Maxim Integrated" |
manufacturer name
Definition at line 44 of file driver_max30205.c.
| #define MAX30205_REG_CONF 0x01 |
configure register
Definition at line 56 of file driver_max30205.c.
| #define MAX30205_REG_TEMP 0x00 |
| #define MAX30205_REG_THYST 0x02 |
thyst register
Definition at line 57 of file driver_max30205.c.
| #define MAX30205_REG_TOS 0x03 |
tos register
Definition at line 58 of file driver_max30205.c.
| #define MAX_CURRENT 20.0f |
chip max current
Definition at line 47 of file driver_max30205.c.
| #define SUPPLY_VOLTAGE_MAX 3.3f |
chip max supply voltage
Definition at line 46 of file driver_max30205.c.
| #define SUPPLY_VOLTAGE_MIN 2.7f |
chip min supply voltage
Definition at line 45 of file driver_max30205.c.
| #define TEMPERATURE_MAX 50.0f |
chip max operating temperature
Definition at line 49 of file driver_max30205.c.
| #define TEMPERATURE_MIN 0.0f |
chip min operating temperature
Definition at line 48 of file driver_max30205.c.