30 #include "max30100_regs.h" 32 #include "mraa/gpio.h" 53 mraa_i2c_context _i2c_context;
56 mraa_gpio_context _gpio_context;
59 MAX30100_SAMPLE_STATE sample_state;
62 func_sample_ready_handler func_sample_ready;
122 func_sample_ready_handler isr,
165 MAX30100_REG reg, uint8_t value, uint8_t mask);
273 MAX30100_LED_CURRENT ir,
274 MAX30100_LED_CURRENT r);
285 MAX30100_LED_CURRENT* ir,
286 MAX30100_LED_CURRENT* r);
upm_result_t max30100_set_pulse_width(const max30100_context *dev, MAX30100_LED_PW pulse_width)
Definition: max30100.c:296
void max30100_close(max30100_context *dev)
Definition: max30100.c:84
upm_result_t max30100_get_current(const max30100_context *dev, MAX30100_LED_CURRENT *ir, MAX30100_LED_CURRENT *r)
Definition: max30100.c:325
upm_result_t max30100_write(const max30100_context *dev, MAX30100_REG reg, uint8_t wr_data)
Definition: max30100.c:141
upm_result_t max30100_get_high_res(const max30100_context *dev, bool *high_res)
Definition: max30100.c:262
upm_result_t max30100_sample(max30100_context *dev, max30100_value *samp)
Definition: max30100.c:413
upm_result_t max30100_reset(const max30100_context *dev)
Definition: max30100.c:341
upm_result_t max30100_set_sample_rate(const max30100_context *dev, MAX30100_SR sample_rate)
Definition: max30100.c:276
upm_result_t max30100_rd_mod_wr(const max30100_context *dev, MAX30100_REG reg, uint8_t value, uint8_t mask)
Definition: max30100.c:151
upm_result_t max30100_get_sample_rate(const max30100_context *dev, MAX30100_SR *sample_rate)
Definition: max30100.c:282
Definition: max30100.h:51
upm_result_t max30100_get_version(const max30100_context *dev, uint16_t *version)
Definition: max30100.c:172
upm_result_t max30100_sample_stop(max30100_context *dev)
Definition: max30100.c:517
upm_result_t max30100_sample_continuous(max30100_context *dev, int gpio_pin, bool buffered, func_sample_ready_handler isr, void *arg)
Definition: max30100.c:455
upm_result_t max30100_read(const max30100_context *dev, MAX30100_REG reg, uint8_t *rd_data)
Definition: max30100.c:129
Definition: max30100_regs.h:36
upm_result_t max30100_set_high_res(const max30100_context *dev, bool high_res)
Definition: max30100.c:255
upm_result_t max30100_sleep(const max30100_context *dev, bool sleep)
Definition: max30100.c:349
upm_result_t max30100_set_mode(const max30100_context *dev, MAX30100_MODE mode)
Definition: max30100.c:235
upm_result_t max30100_set_current(const max30100_context *dev, MAX30100_LED_CURRENT ir, MAX30100_LED_CURRENT r)
Definition: max30100.c:316
upm_result_t max30100_get_mode(const max30100_context *dev, MAX30100_MODE *mode)
Definition: max30100.c:241
upm_result_t max30100_get_pulse_width(const max30100_context *dev, MAX30100_LED_PW *pulse_width)
Definition: max30100.c:302
max30100_context * max30100_init(int16_t i2c_bus)
Definition: max30100.c:33
upm_result_t max30100_get_temperature(const max30100_context *dev, float *temperature)
Definition: max30100.c:192