mirror of
https://github.com/QuantumLeaps/qpc.git
synced 2025-01-14 06:43:19 +08:00
52 lines
1.7 KiB
C
52 lines
1.7 KiB
C
/*$file${.::calc1_sub.h} ###################################################*/
|
|
/*
|
|
* Model: calc1_sub.qm
|
|
* File: C:/qp_lab/qpc/examples/win32/calc1_sub/calc1_sub.h
|
|
*
|
|
* This code has been generated by QM tool (https://state-machine.com/qm).
|
|
* DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
|
|
*
|
|
* This code is covered by the following QP license:
|
|
* License # : QPC-EVAL-171231
|
|
* Issued to : Company/individual evaluating the QP/C framework
|
|
* Framework(s): qpc
|
|
* Support ends: 2017-12-31
|
|
* Product(s) :
|
|
* This license is available only for evaluation purposes and
|
|
* the generated code is still licensed under the terms of GPL.
|
|
* Please submit request for extension of the evaluaion period at:
|
|
* https://state-machine.com/licensing/#RequestForm
|
|
*/
|
|
/*$endhead${.::calc1_sub.h} ################################################*/
|
|
#ifndef calc1_sub_h
|
|
#define calc1_sub_h
|
|
|
|
enum CalcSignals {
|
|
C_SIG = Q_USER_SIG,
|
|
CE_SIG,
|
|
DIGIT_0_SIG,
|
|
DIGIT_1_9_SIG,
|
|
POINT_SIG,
|
|
OPER_SIG,
|
|
EQUALS_SIG,
|
|
OFF_SIG
|
|
};
|
|
|
|
/*$declare${Events::CalcEvt} ###############################################*/
|
|
/*${Events::CalcEvt} .......................................................*/
|
|
typedef struct {
|
|
/* protected: */
|
|
QEvt super;
|
|
|
|
/* public: */
|
|
uint8_t key_code;
|
|
} CalcEvt;
|
|
/*$enddecl${Events::CalcEvt} ###############################################*/
|
|
/*$declare${SMs::Calc_ctor} ################################################*/
|
|
/*${SMs::Calc_ctor} ........................................................*/
|
|
void Calc_ctor(void);
|
|
/*$enddecl${SMs::Calc_ctor} ################################################*/
|
|
|
|
extern QMsm * const the_calc; /* "opaque" pointer to calculator MSM */
|
|
|
|
#endif /* calc1_sub_h */ |