blob: 39f5b4e004457ff8a62f0b2a47d0b1a20de236ed [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014 fortiss GmbH
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Alois Zoitl - initial API and implementation and/or initial documentation
*******************************************************************************/
#include "E_RTimeOut.h"
#ifdef FORTE_ENABLE_GENERATED_SOURCE_CPP
#include "E_RTimeOut_gen.cpp"
#endif
#include "criticalregion.h"
#include "resource.h"
DEFINE_FIRMWARE_FB(FORTE_E_RTimeOut, g_nStringIdE_RTimeOut)
const SAdapterInstanceDef FORTE_E_RTimeOut::scmAdapterInstances[] = {
{g_nStringIdARTimeOut, g_nStringIdTimeOutSocket, false}
};
const SFBInterfaceSpec FORTE_E_RTimeOut::scmFBInterfaceSpec = {
0, nullptr, nullptr, nullptr,
0, nullptr, nullptr, nullptr,
0, nullptr, nullptr,
0, nullptr, nullptr,
0, nullptr,
1, scmAdapterInstances
};
FORTE_E_RTimeOut::FORTE_E_RTimeOut(const CStringDictionary::TStringId paInstanceNameId, forte::core::CFBContainer &paContainer) :
CCompositeFB(paContainer, &scmFBInterfaceSpec, paInstanceNameId, scmFBNData) {
};
const SCFB_FBInstanceData FORTE_E_RTimeOut::scmInternalFBs[] = {
{g_nStringIdDLY, g_nStringIdE_RDELAY}
};
const SCFB_FBConnectionData FORTE_E_RTimeOut::scmEventConnections[] = {
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdTimeOutSocket, g_nStringIdSTART), CCompositeFB::scmAdapterMarker | 0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdDLY, g_nStringIdSTART), 0},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdTimeOutSocket, g_nStringIdSTOP), CCompositeFB::scmAdapterMarker | 0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdDLY, g_nStringIdSTOP), 0},
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdDLY, g_nStringIdEO), 0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdTimeOutSocket, g_nStringIdTimeOut), CCompositeFB::scmAdapterMarker | 0},
};
const SCFB_FBConnectionData FORTE_E_RTimeOut::scmDataConnections[] = {
{GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdTimeOutSocket, g_nStringIdDT), CCompositeFB::scmAdapterMarker | 0, GENERATE_CONNECTION_PORT_ID_2_ARG(g_nStringIdDLY, g_nStringIdDT), 0},
};
const SCFB_FBNData FORTE_E_RTimeOut::scmFBNData = {
1, scmInternalFBs,
3, scmEventConnections,
0, nullptr,
1, scmDataConnections,
0, nullptr,
0, nullptr,
0, nullptr
};
void FORTE_E_RTimeOut::readInputData(TEventID) {
}
void FORTE_E_RTimeOut::writeOutputData(TEventID) {
}
void FORTE_E_RTimeOut::readInternal2InterfaceOutputData(TEventID) {
}
CIEC_ANY *FORTE_E_RTimeOut::getDI(size_t) {
return nullptr;
}
CIEC_ANY *FORTE_E_RTimeOut::getDO(size_t) {
return nullptr;
}
CEventConnection *FORTE_E_RTimeOut::getEOConUnchecked(TPortId) {
return nullptr;
}
CDataConnection **FORTE_E_RTimeOut::getDIConUnchecked(TPortId) {
return nullptr;
}
CDataConnection *FORTE_E_RTimeOut::getDOConUnchecked(TPortId) {
return nullptr;
}