![]() |
MAXREFDES117# Code Documentation
V01.00
Heart Rate / SpO2 Monitor
|
Go to the source code of this file.
Functions | |
bool | maxim_max30102_write_reg (uint8_t uch_addr, uint8_t uch_data) |
Write a value to a MAX30102 register. | |
bool | maxim_max30102_read_reg (uint8_t uch_addr, uint8_t *puch_data) |
Read a MAX30102 register. | |
bool | maxim_max30102_init () |
Initialize the MAX30102. | |
bool | maxim_max30102_read_fifo (uint32_t *pun_red_led, uint32_t *pun_ir_led) |
Read a set of samples from the MAX30102 FIFO register. | |
bool | maxim_max30102_reset () |
Reset the MAX30102. | |
******************************************************
Project: MAXREFDES117# Filename: max30102.cpp Description: This module is an embedded controller driver for the MAX30102
Revision History:
1-18-2016 Rev 01.00 GL Initial release.
This code follows the following naming conventions:
char ch_pmod_value char (array) s_pmod_s_string[16] float f_pmod_value int32_t n_pmod_value int32_t (array) an_pmod_value[16] int16_t w_pmod_value int16_t (array) aw_pmod_value[16] uint16_t uw_pmod_value uint16_t (array) auw_pmod_value[16] uint8_t uch_pmod_value uint8_t (array) auch_pmod_buffer[16] uint32_t un_pmod_value int32_t * pn_pmod_value
Definition in file max30102.cpp.
bool maxim_max30102_init | ( | ) |
Initialize the MAX30102.
None |
true | on success |
Definition at line 111 of file max30102.cpp.
bool maxim_max30102_read_fifo | ( | uint32_t * | pun_red_led, |
uint32_t * | pun_ir_led | ||
) |
Read a set of samples from the MAX30102 FIFO register.
[out] | *pun_red_led | - pointer that stores the red LED reading data |
[out] | *pun_ir_led | - pointer that stores the IR LED reading data |
true | on success |
Definition at line 154 of file max30102.cpp.
bool maxim_max30102_read_reg | ( | uint8_t | uch_addr, |
uint8_t * | puch_data | ||
) |
Read a MAX30102 register.
[in] | uch_addr | - register address |
[out] | puch_data | - pointer that stores the register data |
true | on success |
Definition at line 88 of file max30102.cpp.
bool maxim_max30102_reset | ( | void | ) |
Reset the MAX30102.
None |
true | on success |
Definition at line 202 of file max30102.cpp.
bool maxim_max30102_write_reg | ( | uint8_t | uch_addr, |
uint8_t | uch_data | ||
) |
Write a value to a MAX30102 register.
[in] | uch_addr | - register address |
[in] | uch_data | - register data |
true | on success |
Definition at line 66 of file max30102.cpp.