48 lines
1.5 KiB
C
Raw Normal View History

2012-08-14 18:07:04 -04:00
/*****************************************************************************
2015-04-28 13:45:35 -04:00
* Model: comp.qm
* File: ./alarm.h
2012-08-14 18:07:04 -04:00
*
2013-09-23 14:34:35 -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.
2012-08-14 18:07:04 -04:00
*
2013-09-23 14:34:35 -04:00
* 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.
2012-08-14 18:07:04 -04:00
*****************************************************************************/
2015-04-28 13:45:35 -04:00
/*${.::alarm.h} ............................................................*/
#ifndef alarm_h
#define alarm_h
/*${Components::Alarm} .....................................................*/
2014-04-06 11:43:13 -04:00
typedef struct {
/* protected: */
2015-04-28 13:45:35 -04:00
QMsm super;
/* private: */
uint32_t alarm_time;
} Alarm;
2012-08-14 18:07:04 -04:00
2014-04-06 11:43:13 -04:00
/* public: */
2015-04-28 13:45:35 -04:00
void Alarm_ctor(Alarm * const me);
/* protected: */
QState Alarm_initial(Alarm * const me, QEvt const * const e);
QState Alarm_off (Alarm * const me, QEvt const * const e);
QState Alarm_off_e(Alarm * const me);
QState Alarm_off_x(Alarm * const me);
extern QMState const Alarm_off_s;
QState Alarm_on (Alarm * const me, QEvt const * const e);
QState Alarm_on_e(Alarm * const me);
extern QMState const Alarm_on_s;
2012-08-14 18:07:04 -04:00
2015-04-28 13:45:35 -04:00
void Alarm_ctor(Alarm * const me);
2012-08-14 18:07:04 -04:00
2014-04-06 11:43:13 -04:00
2015-04-28 13:45:35 -04:00
#endif /* alarm_h */