MAXREFDES#117

Dependencies:   mbed USBDevice

Revision:
5:e7b8e61b1fe1
Parent:
4:5273ab1085ab
--- a/MAX30102/MAX30102.h	Thu May 19 22:04:06 2016 +0000
+++ b/MAX30102/MAX30102.h	Mon Jan 27 11:27:41 2020 +0000
@@ -88,10 +88,16 @@
 #define REG_REV_ID 0xFE
 #define REG_PART_ID 0xFF
 
+
+#define MAX30102_NO_ERROR   0
+#define MAX30102_ERROR      -1
+
+int MAX30102_writeRegValue(uint8_t reg,  char value); 
+uint8_t MAX30102_begin(uint8_t reg);
 bool maxim_max30102_init();
 bool maxim_max30102_read_fifo(uint32_t *pun_red_led, uint32_t *pun_ir_led);
 bool maxim_max30102_write_reg(uint8_t uch_addr, uint8_t uch_data);
-bool maxim_max30102_read_reg(uint8_t uch_addr, uint8_t *puch_data);
+bool maxim_max30102_read_reg(uint8_t uch_addr, uint8_t puch_data);
 bool maxim_max30102_reset(void);
 
 #endif /* MAX30102_H_ */
\ No newline at end of file