Quantum Leaps 72c46c2993 5.3.0
2014-04-06 11:43:13 -04:00

49 lines
1.4 KiB
C

/*****************************************************************************
* Model: calc2.qm
* File: ./calc2.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.
*****************************************************************************/
/*${.::calc2.h} ............................................................*/
#ifndef calc2_h
#define calc2_h
enum CalcSignals {
C_SIG = Q_USER_SIG,
CE_SIG,
DIGIT_0_SIG,
DIGIT_1_9_SIG,
POINT_SIG,
OPER_SIG,
EQUALS_SIG,
PERCENT_SIG,
OFF_SIG
};
/*${Events::CalcEvt} .......................................................*/
typedef struct {
/* protected: */
QEvt super;
/* public: */
uint8_t key_code;
} CalcEvt;
/*${SMs::Calc2_ctor} .......................................................*/
void Calc2_ctor(void);
extern QMsm * const the_calc; /* "opaque" pointer to calculator MSM */
#endif /* calc2_h */