36 arm_fast_model_pybind(pybind11::module &m_internal)
38 auto arm_fast_model = m_internal.def_submodule(
"arm_fast_model");
40 .def(
"scx_initialize", [](std::string
id) {
41 scx::scx_initialize(
id);
45 .def(
"scx_load_application", &scx::scx_load_application)
46 .def(
"scx_load_application_all", &scx::scx_load_application_all)
47 .def(
"scx_load_data", &scx::scx_load_data)
48 .def(
"scx_load_data_all", &scx::scx_load_data_all)
54 .def(
"scx_set_parameter",
55 static_cast<bool (*)(
const std::string &,
const std::string &)
>(
56 &scx::scx_set_parameter))
57 .def(
"scx_get_parameter",
58 static_cast<bool (*)(
const std::string &, std::string &)
>(
59 &scx::scx_get_parameter))
60 .def(
"scx_get_parameter_list", &scx::scx_get_parameter_list)
62 .def(
"scx_set_cpi_file", &scx::scx_set_cpi_file)
66 .def(
"scx_cpulimit", &scx::scx_cpulimit)
67 .def(
"scx_timelimit", &scx::scx_timelimit)
68 .def(
"scx_simlimit", &scx::scx_simlimit)
70 .def(
"scx_parse_and_configure",
72 const char *trailer=NULL,
bool sig_handler=
true) {
73 scx::scx_parse_and_configure(argc, argv.data(),
74 trailer, sig_handler);
76 pybind11::arg(
"argc"),
77 pybind11::arg(
"argv"),
78 pybind11::arg(
"trailer") = NULL,
79 pybind11::arg(
"sig_handler") =
true)
82 .def(
"scx_start_cadi_server", &scx::scx_start_cadi_server,
83 pybind11::arg(
"start") =
true,
84 pybind11::arg(
"run") =
true,
85 pybind11::arg(
"debug") =
false)
86 .def(
"scx_enable_cadi_log", &scx::scx_enable_cadi_log,
87 pybind11::arg(
"log") =
true)
88 .def(
"scx_prefix_appli_output", &scx::scx_prefix_appli_output,
89 pybind11::arg(
"prefix") =
true)
90 .def(
"scx_print_port_number", &scx::scx_print_port_number,
91 pybind11::arg(
"print") =
true)
93 .def(
"scx_print_statistics", &scx::scx_print_statistics,
94 pybind11::arg(
"print") =
true)
95 .def(
"scx_load_plugin", &scx::scx_load_plugin)
96 .def(
"scx_sync", &scx::scx_sync)
97 .def(
"scx_set_min_sync_latency",
98 static_cast<void (*)(
double)
>(&scx::scx_set_min_sync_latency))
99 .def(
"scx_set_min_sync_latency",
100 static_cast<void (*)(sg::ticks_t)
>(
101 &scx::scx_set_min_sync_latency))
102 .def(
"scx_get_min_sync_latency",
103 static_cast<double (*)()
>(&scx::scx_get_min_sync_latency))
104 .def(
"scx_get_min_sync_latency",
105 static_cast<sg::ticks_t (*)(sg::Tag<sg::ticks_t> *)
>(
106 &scx::scx_get_min_sync_latency))
static EmbeddedPyBind embed_("stattest", stattest_init_pybind)