carte esclave pompe 2020 V1

Dependencies:   mbed ident_crac

class_ventouse.h

Committer:
marwanesaich
Date:
2019-05-06
Revision:
0:84a8c24e29ae
Child:
2:4cc8fa2f64be

File content as of revision 0:84a8c24e29ae:

#ifndef CLASS_VENTOUSE_H
#define CLASS_VENTOUSE_H

#include "mbed.h"


class Ventouse
{
public:
    Ventouse(PinName pinPompe, PinName pinElectrovanne, PinName pinCapteurPression);
    
    void attraper();
    void relacher();
    
    int getPression();
    int getPompe();
    
    
    void setPompe(float val);
    void setElectrovanne(float val);
    



private:
    PwmOut* m_pompe;
    PwmOut* m_electrovanne;
    AnalogIn* m_pression;
    
    PinName m_pinPompe, m_pinElectrovanne, m_pinCapteurPression;

    
};

#endif //CLASS_VENTOUSE_H