2014-04-13 21:35:34 -04:00
|
|
|
//****************************************************************************
|
2015-05-14 16:05:04 -04:00
|
|
|
// Model: comp.qm
|
|
|
|
// File: ./alarm.h
|
2014-04-13 21:35:34 -04:00
|
|
|
//
|
|
|
|
// This code has been generated by QM tool (see state-machine.com/qm).
|
|
|
|
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
|
|
|
|
//
|
|
|
|
// This program is open source software: you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as published
|
|
|
|
// by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
// for more details.
|
|
|
|
//****************************************************************************
|
2015-05-14 16:05:04 -04:00
|
|
|
//${.::alarm.h} ..............................................................
|
|
|
|
#ifndef alarm_h
|
|
|
|
#define alarm_h
|
2014-04-13 21:35:34 -04:00
|
|
|
|
2015-05-14 16:05:04 -04:00
|
|
|
//${Components::Alarm} .......................................................
|
|
|
|
class Alarm : public QP::QMsm {
|
|
|
|
private:
|
|
|
|
uint32_t m_alarm_time;
|
2014-04-13 21:35:34 -04:00
|
|
|
|
|
|
|
public:
|
2015-05-14 16:05:04 -04:00
|
|
|
Alarm();
|
2014-04-13 21:35:34 -04:00
|
|
|
|
2015-05-14 16:05:04 -04:00
|
|
|
protected:
|
|
|
|
static QP::QState initial(Alarm * const me, QP::QEvt const * const e);
|
|
|
|
static QP::QState off (Alarm * const me, QP::QEvt const * const e);
|
|
|
|
static QP::QState off_e(Alarm * const me);
|
|
|
|
static QP::QState off_x(Alarm * const me);
|
|
|
|
static QP::QMState const off_s;
|
|
|
|
static QP::QState on (Alarm * const me, QP::QEvt const * const e);
|
|
|
|
static QP::QState on_e(Alarm * const me);
|
|
|
|
static QP::QMState const on_s;
|
|
|
|
};
|
2014-04-13 21:35:34 -04:00
|
|
|
|
|
|
|
|
2015-05-14 16:05:04 -04:00
|
|
|
#endif // alarm_h
|