Quantum Leaps cd6736f1fd 5.4.0
2015-04-28 13:45:35 -04:00

48 lines
1.5 KiB
C

/*****************************************************************************
* Model: comp.qm
* File: ./alarm.h
*
* 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.
*****************************************************************************/
/*${.::alarm.h} ............................................................*/
#ifndef alarm_h
#define alarm_h
/*${Components::Alarm} .....................................................*/
typedef struct {
/* protected: */
QMsm super;
/* private: */
uint32_t alarm_time;
} Alarm;
/* public: */
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;
void Alarm_ctor(Alarm * const me);
#endif /* alarm_h */