Library for the Grove Earbud Heartrate Sensor
Dependents: BLE_Police_HRM_Earbud df-2014-salesforce-hrm-k64f BLE_HeartRate_ppm emoSound ... more
Diff: GroveEarbudSensor.h
- Revision:
- 11:30d8d0a456f3
- Parent:
- 8:06be613d8c3e
diff -r db3dea613e09 -r 30d8d0a456f3 GroveEarbudSensor.h --- a/GroveEarbudSensor.h Thu Dec 18 05:41:14 2014 +0000 +++ b/GroveEarbudSensor.h Wed Mar 11 20:27:28 2015 +0000 @@ -106,6 +106,7 @@ GroveEarbudSensorCallback *m_cb_fn; void *m_cb_data; Timer *m_timer; + bool m_internal_interrupt_instance; public: /** @@ -116,6 +117,13 @@ GroveEarbudSensor(InterruptIn *rx,RawSerial *pc = NULL); /** + constructor for internalized InterruptIn usage + @param rx interrupt_pin InterruptIn pin name + @param pc input RawSerial instance for debugging (if NULL, no debugging output will occur in the library) + */ + GroveEarbudSensor(PinName interrupt_pin,RawSerial *pc = NULL); + + /** Default destructor */ virtual ~GroveEarbudSensor();