corazoncito

HeartRate.h

Committer:
arturogasca
Date:
2016-12-03
Revision:
0:18957c930b4c

File content as of revision 0:18957c930b4c:

/* HeartRate.h */
#ifndef HEARTRATE_H_
#define HEARTRATE_H_
 
#include "mbed.h"

 
/** 
*/

class HeartRate
{
public:
    /** Constructor
     */
    HeartRate(PinName adc, PinName LO_PLS, PinName LO_MIN);
    
    /** Destructor
     */
    ~HeartRate();
    
    /** Check available
     */
    bool available();
    
    /** Read ADC function
     */
    unsigned short read();
      
private:   
 
    AnalogIn sensorPin;  
    DigitalIn LO_MIN;
    DigitalIn LO_PLS;

};
 
#endif /* HEARTRATE_H_ */