MAXREFDES117# Code Documentation  V01.00
Heart Rate / SpO2 Monitor
 All Files Functions Variables Macros Pages
MAX30102.cpp File Reference
#include "mbed.h"
#include "MAX30102.h"

Go to the source code of this file.

Functions

I2C i2c (I2C_SDA, I2C_SCL)
 
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.
 

Detailed Description


Project: MAXREFDES117# Filename: max30102.cpp Description: This module is an embedded controller driver for the MAX30102


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.

Function Documentation

I2C i2c ( I2C_SDA  ,
I2C_SCL   
)
bool maxim_max30102_init ( )

Initialize the MAX30102.

Details
This function initializes the MAX30102
Parameters
None
Return values
trueon success

Definition at line 115 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.

Details
This function reads a set of samples from the MAX30102 FIFO register
Parameters
[out]*pun_red_led- pointer that stores the red LED reading data
[out]*pun_ir_led- pointer that stores the IR LED reading data
Return values
trueon success

Definition at line 152 of file MAX30102.cpp.

bool maxim_max30102_read_reg ( uint8_t  uch_addr,
uint8_t *  puch_data 
)

Read a MAX30102 register.

Details
This function reads a MAX30102 register
Parameters
[in]uch_addr- register address
[out]puch_data- pointer that stores the register data
Return values
trueon success

Definition at line 90 of file MAX30102.cpp.

bool maxim_max30102_reset ( void  )

Reset the MAX30102.

Details
This function resets the MAX30102
Parameters
None
Return values
trueon success

Definition at line 205 of file MAX30102.cpp.

bool maxim_max30102_write_reg ( uint8_t  uch_addr,
uint8_t  uch_data 
)

Write a value to a MAX30102 register.

Details
This function writes a value to a MAX30102 register
Parameters
[in]uch_addr- register address
[in]uch_data- register data
Return values
trueon success

Definition at line 68 of file MAX30102.cpp.