= ovenActiveLight(instanceVar, &instanceVarCopy, msg); evConsumed |= ovenActivePower(instanceVar, &instanceVarCopy, msg);
evConsumed |= ovenActiveRadioator(instanceVar, &instanceVarCopy, msg);
/* Check if event was already processed */
if(evConsumed==0U){
.... /* handle event on parent level */
break;
} /* end switch stateVar_root */
/* Save the modified instance data */
*instanceVar = instanceVarCopy;
}
OVEN_EV_CONSUMED_FLAG_T ovenActiveLight(OVEN_INSTANCEDATA_T *instanceVar, OVEN_INSTANCEDATA_T *instanceVarCopy, OVEN_EVENT_T msg){
...
}
OVEN_EV_CONSUMED_FLAG_T ovenActivePower(OVEN_INSTANCEDATA_T *instanceVar, OVEN_INSTANCEDATA_T *instanceVarCopy, OVEN_EVENT_T msg){
...
}
OVEN_EV_CONSUMED_FLAG_T ovenActiveRadioator(OVEN_INSTANCEDATA_T *instanceVar, OVEN_INSTANCEDATA_T *instanceVarCopy, OVEN_EVENT_T msg){
...
}
</code>
And the same example for C
:
<code c++>