blob: 9baf772104f5459adf74d7f3d885fcae38a038e7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 - 2013 ACIN, fortiss GmbH
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Monika Wenger, Alois Zoitl
* - initial API and implementation and/or initial documentation
*******************************************************************************/
#include "F_SUB.h"
#ifdef FORTE_ENABLE_GENERATED_SOURCE_CPP
#include "F_SUB_gen.cpp"
#endif
#include <anyhelper.h>
DEFINE_FIRMWARE_FB(FORTE_F_SUB, g_nStringIdF_SUB)
const CStringDictionary::TStringId FORTE_F_SUB::scm_anDataInputNames[] = { g_nStringIdIN1, g_nStringIdIN2 };
const CStringDictionary::TStringId FORTE_F_SUB::scm_anDataInputTypeIds[] = { g_nStringIdANY_MAGNITUDE, g_nStringIdANY_MAGNITUDE };
const CStringDictionary::TStringId FORTE_F_SUB::scm_anDataOutputNames[] = { g_nStringIdOUT };
const CStringDictionary::TStringId FORTE_F_SUB::scm_anDataOutputTypeIds[] = { g_nStringIdANY_MAGNITUDE };
const TForteInt16 FORTE_F_SUB::scm_anEIWithIndexes[] = { 0 };
const TDataIOID FORTE_F_SUB::scm_anEIWith[] = { 0, 1, 255 };
const CStringDictionary::TStringId FORTE_F_SUB::scm_anEventInputNames[] = { g_nStringIdREQ };
const TDataIOID FORTE_F_SUB::scm_anEOWith[] = { 0, 255 };
const TForteInt16 FORTE_F_SUB::scm_anEOWithIndexes[] = { 0 };
const CStringDictionary::TStringId FORTE_F_SUB::scm_anEventOutputNames[] = { g_nStringIdCNF };
const SFBInterfaceSpec FORTE_F_SUB::scm_stFBInterfaceSpec = { 1, scm_anEventInputNames, scm_anEIWith, scm_anEIWithIndexes, 1, scm_anEventOutputNames, scm_anEOWith, scm_anEOWithIndexes, 2, scm_anDataInputNames, scm_anDataInputTypeIds, 1, scm_anDataOutputNames, scm_anDataOutputTypeIds, 0, 0 };
void FORTE_F_SUB::executeEvent(int pa_nEIID){
if(scm_nEventREQID == pa_nEIID){
anyMagnitudeFBHelper<FORTE_F_SUB>(IN1().getDataTypeID(), *this);
sendOutputEvent(scm_nEventCNFID);
}
}