1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
|
/*
* Copyright (C) 2015 FAUmachine Team <info@faumachine.org>.
* This program is free software. You can redistribute it and/or modify it
* under the terms of the GNU General Public License, either version 2 of
* the License, or (at your option) any later version. See COPYING.
*/
#ifdef STATE
struct {
unsigned int states[IN_N];
} NAME;
#undef IN_N
#endif /*STATE*/
#ifdef BEHAVIOUR
#ifdef NAME_IN_PORT_0_
static void
NAME_IN_PORT_0_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[0] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_0_ */
#ifdef NAME_IN_PORT_1_
static void
NAME_IN_PORT_1_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[1] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_1_ */
#ifdef NAME_IN_PORT_2_
static void
NAME_IN_PORT_2_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[2] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_2_ */
#ifdef NAME_IN_PORT_3_
static void
NAME_IN_PORT_3_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[3] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_3_ */
#ifdef NAME_IN_PORT_4_
static void
NAME_IN_PORT_4_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[4] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_4_ */
#ifdef NAME_IN_PORT_5_
static void
NAME_IN_PORT_5_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[5] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_5_ */
#ifdef NAME_IN_PORT_6_
static void
NAME_IN_PORT_6_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[6] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_6_ */
#ifdef NAME_IN_PORT_7_
static void
NAME_IN_PORT_7_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[7] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_7_ */
#ifdef NAME_IN_PORT_8_
static void
NAME_IN_PORT_8_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[8] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_8_ */
#ifdef NAME_IN_PORT_9_
static void
NAME_IN_PORT_9_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[9] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_9_ */
#ifdef NAME_IN_PORT_10_
static void
NAME_IN_PORT_10_(in_set)(struct cpssp *cpssp, unsigned int val)
{
cpssp->NAME.states[10] = val;
NAME_(solve)(cpssp);
}
#endif /* NAME_IN_PORT_10_ */
#endif /*BEHAVIOUR*/
|