2012-08-14 18:07:04 -04:00
|
|
|
/*****************************************************************************
|
2016-09-01 11:57:27 -04:00
|
|
|
* Model: calc1.qm
|
|
|
|
* File: ./calc1.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
|
|
|
*****************************************************************************/
|
2016-09-01 11:57:27 -04:00
|
|
|
/*${.::calc1.h} ............................................................*/
|
|
|
|
#ifndef calc1_h
|
|
|
|
#define calc1_h
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
enum CalcSignals {
|
|
|
|
C_SIG = Q_USER_SIG,
|
|
|
|
CE_SIG,
|
|
|
|
DIGIT_0_SIG,
|
|
|
|
DIGIT_1_9_SIG,
|
|
|
|
POINT_SIG,
|
|
|
|
OPER_SIG,
|
|
|
|
EQUALS_SIG,
|
|
|
|
OFF_SIG
|
2012-08-14 18:07:04 -04:00
|
|
|
};
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/*${Events::CalcEvt} .......................................................*/
|
|
|
|
typedef struct {
|
|
|
|
/* protected: */
|
|
|
|
QEvt super;
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* public: */
|
|
|
|
uint8_t key_code;
|
|
|
|
} CalcEvt;
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2016-09-01 11:57:27 -04:00
|
|
|
/*${SMs::Calc_ctor} ........................................................*/
|
|
|
|
void Calc_ctor(void);
|
2012-08-14 18:07:04 -04:00
|
|
|
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
extern QMsm * const the_calc; /* "opaque" pointer to calculator MSM */
|
|
|
|
|
2016-09-01 11:57:27 -04:00
|
|
|
#endif /* calc1_h */
|