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