fpp/compiler/tools/fpp-to-cpp/test/top/params/ParamsTopologyAc.ref.hpp
2025-12-04 20:41:05 -08:00

117 lines
2.4 KiB
C++
Vendored

// ======================================================================
// \title ParamsTopologyAc.hpp
// \author Generated by fpp-to-cpp
// \brief hpp file for Params topology
// ======================================================================
#ifndef M_ParamsTopologyAc_HPP
#define M_ParamsTopologyAc_HPP
#include "C.hpp"
#include "ParamsTopologyDefs.hpp"
// ----------------------------------------------------------------------
// Component instances
// ----------------------------------------------------------------------
namespace M {
//! c1
extern M::C c1;
}
namespace M {
//! c2
extern M::C c2;
}
namespace M {
// ----------------------------------------------------------------------
// 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