![]() |
MAXREFDES117# Code Documentation
V01.00
Heart Rate / SpO2 Monitor
|
Go to the source code of this file.
Functions | |
void | maxim_heart_rate_and_oxygen_saturation (uint32_t *pun_ir_buffer, int32_t n_ir_buffer_length, uint32_t *pun_red_buffer, int32_t *pn_spo2, int8_t *pch_spo2_valid, int32_t *pn_heart_rate, int8_t *pch_hr_valid) |
Calculate the heart rate and SpO2 level. | |
void | maxim_find_peaks (int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_size, int32_t n_min_height, int32_t n_min_distance, int32_t n_max_num) |
Find peaks. | |
void | maxim_peaks_above_min_height (int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_size, int32_t n_min_height) |
Find peaks above n_min_height. | |
void | maxim_remove_close_peaks (int32_t *pn_locs, int32_t *pn_npks, int32_t *pn_x, int32_t n_min_distance) |
Remove peaks. | |
void | maxim_sort_ascend (int32_t *pn_x, int32_t n_size) |
Sort array. | |
void | maxim_sort_indices_descend (int32_t *pn_x, int32_t *pn_indx, int32_t n_size) |
Sort indices. | |
Project: MAXREFDES117# Filename: algorithm.cpp Description: This module calculates the heart rate/SpO2 level
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 algorithm.cpp.
void maxim_find_peaks | ( | int32_t * | pn_locs, |
int32_t * | pn_npks, | ||
int32_t * | pn_x, | ||
int32_t | n_size, | ||
int32_t | n_min_height, | ||
int32_t | n_min_distance, | ||
int32_t | n_max_num | ||
) |
Find peaks.
None |
Definition at line 254 of file algorithm.cpp.
void maxim_heart_rate_and_oxygen_saturation | ( | uint32_t * | pun_ir_buffer, |
int32_t | n_ir_buffer_length, | ||
uint32_t * | pun_red_buffer, | ||
int32_t * | pn_spo2, | ||
int8_t * | pch_spo2_valid, | ||
int32_t * | pn_heart_rate, | ||
int8_t * | pch_hr_valid | ||
) |
Calculate the heart rate and SpO2 level.
[in] | *pun_ir_buffer | - IR sensor data buffer |
[in] | n_ir_buffer_length | - IR sensor data buffer length |
[in] | *pun_red_buffer | - Red sensor data buffer |
[out] | *pn_spo2 | - Calculated SpO2 value |
[out] | *pch_spo2_valid | - 1 if the calculated SpO2 value is valid |
[out] | *pn_heart_rate | - Calculated heart rate value |
[out] | *pch_hr_valid | - 1 if the calculated heart rate value is valid |
None |
Definition at line 62 of file algorithm.cpp.
void maxim_peaks_above_min_height | ( | int32_t * | pn_locs, |
int32_t * | pn_npks, | ||
int32_t * | pn_x, | ||
int32_t | n_size, | ||
int32_t | n_min_height | ||
) |
Find peaks above n_min_height.
None |
Definition at line 268 of file algorithm.cpp.
void maxim_remove_close_peaks | ( | int32_t * | pn_locs, |
int32_t * | pn_npks, | ||
int32_t * | pn_x, | ||
int32_t | n_min_distance | ||
) |
Remove peaks.
None |
Definition at line 299 of file algorithm.cpp.
void maxim_sort_ascend | ( | int32_t * | pn_x, |
int32_t | n_size | ||
) |
Sort array.
None |
Definition at line 328 of file algorithm.cpp.
void maxim_sort_indices_descend | ( | int32_t * | pn_x, |
int32_t * | pn_indx, | ||
int32_t | n_size | ||
) |
Sort indices.
None |
Definition at line 346 of file algorithm.cpp.