|
YAHAL
Yet Another Hardware Abstraction Library
|
Public Member Functions | |
| max30102_drv (i2c_interface &i2c, uint8_t i2c_addr=MAX30102::I2C_ADDR) | |
| void | setup_sensor (MAX30102::SAMPLE_AVG sample_avg=MAX30102::SAMPLE_AVG::SAMPLE_AVG_8, MAX30102::LED_MODE led_mode=MAX30102::LED_MODE::BOTH_LEDS, MAX30102::ADC_RANGE adc_range=MAX30102::ADC_RANGE::ADC_RANGE_16384, MAX30102::SAMPLE_RATE sample_rate=MAX30102::SAMPLE_RATE::SAMPLE_RATE_400, MAX30102::PULSE_WIDTH pulse_width=MAX30102::PULSE_WIDTH::PULSE_WIDTH_411, uint8_t pulse_amp=MAX30102::PULSE_AMP_MEDIUM) |
| void | set_fifo_average (MAX30102::SAMPLE_AVG samples) |
| void | set_led_mode (MAX30102::LED_MODE mode) |
| void | set_adc_range (MAX30102::ADC_RANGE adc_range) |
| void | set_sample_rate (MAX30102::SAMPLE_RATE rate) |
| void | set_pulse_width (MAX30102::PULSE_WIDTH width) |
| uint8_t | slot_data_available (uint8_t slot) |
| uint32_t | get_slot_data (uint8_t slot) |
| bool | check () |
| uint8_t | get_int_status_1 () |
| uint8_t | get_int_status_2 () |
| void | enable_int_a_full (bool on) |
| void | enable_int_data_rdy (bool on) |
| void | enable_int_alc_ovf (bool on) |
| void | enable_int_die_temp_rdy (bool on) |
| void | enable_fifo_rollover (bool on) |
| void | set_fifo_almost_full (uint8_t samples) |
| void | shutdown (bool on) |
| void | reset () |
| void | set_pulse_amplitude_led1 (uint8_t amplitude) |
| void | set_pulse_amplitude_led2 (uint8_t amplitude) |
| void | config_slots (uint8_t slot1=MAX30102::SLOT_CONFIG::SLOT_NONE, uint8_t slot2=MAX30102::SLOT_CONFIG::SLOT_NONE, uint8_t slot3=MAX30102::SLOT_CONFIG::SLOT_NONE, uint8_t slot4=MAX30102::SLOT_CONFIG::SLOT_NONE) |
| float | read_temperature () |
| uint8_t | read_part_id () |
| bool | check_part_id () |
| uint8_t | get_revision_id () |
Definition at line 75 of file max30102_drv.h.
| max30102_drv::max30102_drv | ( | i2c_interface & | i2c, |
| uint8_t | i2c_addr = MAX30102::I2C_ADDR ) |
Definition at line 73 of file max30102_drv.cpp.
| bool max30102_drv::check | ( | ) |
Definition at line 145 of file max30102_drv.cpp.
| bool max30102_drv::check_part_id | ( | ) |
Definition at line 319 of file max30102_drv.cpp.
| void max30102_drv::config_slots | ( | uint8_t | slot1 = MAX30102::SLOT_CONFIG::SLOT_NONE, |
| uint8_t | slot2 = MAX30102::SLOT_CONFIG::SLOT_NONE, | ||
| uint8_t | slot3 = MAX30102::SLOT_CONFIG::SLOT_NONE, | ||
| uint8_t | slot4 = MAX30102::SLOT_CONFIG::SLOT_NONE ) |
Definition at line 275 of file max30102_drv.cpp.
| void max30102_drv::enable_fifo_rollover | ( | bool | on | ) |
Definition at line 228 of file max30102_drv.cpp.
| void max30102_drv::enable_int_a_full | ( | bool | on | ) |
Definition at line 188 of file max30102_drv.cpp.
| void max30102_drv::enable_int_alc_ovf | ( | bool | on | ) |
Definition at line 208 of file max30102_drv.cpp.
| void max30102_drv::enable_int_data_rdy | ( | bool | on | ) |
Definition at line 198 of file max30102_drv.cpp.
| void max30102_drv::enable_int_die_temp_rdy | ( | bool | on | ) |
Definition at line 218 of file max30102_drv.cpp.
| uint8_t max30102_drv::get_int_status_1 | ( | ) |
Definition at line 180 of file max30102_drv.cpp.
| uint8_t max30102_drv::get_int_status_2 | ( | ) |
Definition at line 184 of file max30102_drv.cpp.
| uint8_t max30102_drv::get_revision_id | ( | ) |
Definition at line 323 of file max30102_drv.cpp.
| uint32_t max30102_drv::get_slot_data | ( | uint8_t | slot | ) |
Definition at line 139 of file max30102_drv.cpp.
| uint8_t max30102_drv::read_part_id | ( | ) |
Definition at line 315 of file max30102_drv.cpp.
| float max30102_drv::read_temperature | ( | ) |
Definition at line 300 of file max30102_drv.cpp.
| void max30102_drv::reset | ( | ) |
Definition at line 256 of file max30102_drv.cpp.
| void max30102_drv::set_adc_range | ( | MAX30102::ADC_RANGE | adc_range | ) |
Definition at line 116 of file max30102_drv.cpp.
| void max30102_drv::set_fifo_almost_full | ( | uint8_t | samples | ) |
Definition at line 238 of file max30102_drv.cpp.
| void max30102_drv::set_fifo_average | ( | MAX30102::SAMPLE_AVG | samples | ) |
Definition at line 98 of file max30102_drv.cpp.
| void max30102_drv::set_led_mode | ( | MAX30102::LED_MODE | mode | ) |
Definition at line 104 of file max30102_drv.cpp.
| void max30102_drv::set_pulse_amplitude_led1 | ( | uint8_t | amplitude | ) |
Definition at line 267 of file max30102_drv.cpp.
| void max30102_drv::set_pulse_amplitude_led2 | ( | uint8_t | amplitude | ) |
Definition at line 271 of file max30102_drv.cpp.
| void max30102_drv::set_pulse_width | ( | MAX30102::PULSE_WIDTH | width | ) |
Definition at line 128 of file max30102_drv.cpp.
| void max30102_drv::set_sample_rate | ( | MAX30102::SAMPLE_RATE | rate | ) |
Definition at line 122 of file max30102_drv.cpp.
| void max30102_drv::setup_sensor | ( | MAX30102::SAMPLE_AVG | sample_avg = MAX30102::SAMPLE_AVG::SAMPLE_AVG_8, |
| MAX30102::LED_MODE | led_mode = MAX30102::LED_MODE::BOTH_LEDS, | ||
| MAX30102::ADC_RANGE | adc_range = MAX30102::ADC_RANGE::ADC_RANGE_16384, | ||
| MAX30102::SAMPLE_RATE | sample_rate = MAX30102::SAMPLE_RATE::SAMPLE_RATE_400, | ||
| MAX30102::PULSE_WIDTH | pulse_width = MAX30102::PULSE_WIDTH::PULSE_WIDTH_411, | ||
| uint8_t | pulse_amp = MAX30102::PULSE_AMP_MEDIUM ) |
Definition at line 78 of file max30102_drv.cpp.
| void max30102_drv::shutdown | ( | bool | on | ) |
Definition at line 245 of file max30102_drv.cpp.
| uint8_t max30102_drv::slot_data_available | ( | uint8_t | slot | ) |
Definition at line 135 of file max30102_drv.cpp.