fpp/compiler/tools/fpp-to-cpp/test/top/tlm_packets/TwoInstancesTopologyAc.ref.hpp
2025-12-04 21:09:38 -08:00

118 lines
2.5 KiB
C++
Vendored

// ======================================================================
// \title TwoInstancesTopologyAc.hpp
// \author Generated by fpp-to-cpp
// \brief hpp file for TwoInstances topology
// ======================================================================
#ifndef N_TwoInstancesTopologyAc_HPP
#define N_TwoInstancesTopologyAc_HPP
#include "C.hpp"
#include "TwoInstancesTopologyDefs.hpp"
#include "TwoInstances_P1TlmPacketsAc.hpp"
// ----------------------------------------------------------------------
// Component instances
// ----------------------------------------------------------------------
namespace M {
//! c1
extern C c1;
}
namespace M {
//! c2
extern C c2;
}
namespace N {
// ----------------------------------------------------------------------
// Constants
// ----------------------------------------------------------------------
namespace BaseIds {
enum {
M_c1 = 0x100,
M_c2 = 0x200,
};
}
namespace InstanceIds {
enum {
M_c1,
M_c2,
};
}
// ----------------------------------------------------------------------
// Helper functions
// ----------------------------------------------------------------------
//! Initialize components
void initComponents(
const TopologyState& state //!< The topology state
);
//! Configure components
void configComponents(
const TopologyState& state //!< The topology state
);
//! Set component base Ids
void setBaseIds();
//! Connect components
void connectComponents();
//! Register commands
void regCommands();
//! Read parameters
void readParameters();
//! Load parameters
void loadParameters();
//! Start tasks
void startTasks(
const TopologyState& state //!< The topology state
);
//! Stop tasks
void stopTasks(
const TopologyState& state //!< The topology state
);
//! Free threads
void freeThreads(
const TopologyState& state //!< The topology state
);
//! Tear down components
void tearDownComponents(
const TopologyState& state //!< The topology state
);
// ----------------------------------------------------------------------
// Setup and teardown functions
// ----------------------------------------------------------------------
//! Set up the topology
void setup(
const TopologyState& state //!< The topology state
);
//! Tear down the topology
void teardown(
const TopologyState& state //!< The topology state
);
}
#endif