48 arm_fast_model_pybind(pybind11::module &m_internal)
50 auto arm_fast_model = m_internal.def_submodule(
"arm_fast_model");
52 .def(
"scx_initialize", [](std::string
id) {
53 scx::scx_initialize(
id);
57 .def(
"scx_load_application", &scx::scx_load_application)
58 .def(
"scx_load_application_all", &scx::scx_load_application_all)
59 .def(
"scx_load_data", &scx::scx_load_data)
60 .def(
"scx_load_data_all", &scx::scx_load_data_all)
66 .def(
"scx_set_parameter",
67 static_cast<bool (*)(
const std::string &,
const std::string &)
>(
68 &scx::scx_set_parameter))
69 .def(
"scx_get_parameter",
70 static_cast<bool (*)(
const std::string &, std::string &)
>(
71 &scx::scx_get_parameter))
72 .def(
"scx_get_parameter_list", &scx::scx_get_parameter_list)
74 .def(
"scx_set_cpi_file", &scx::scx_set_cpi_file)
78 .def(
"scx_cpulimit", &scx::scx_cpulimit)
79 .def(
"scx_timelimit", &scx::scx_timelimit)
80 .def(
"scx_simlimit", &scx::scx_simlimit)
82 .def(
"scx_parse_and_configure",
84 const char *trailer=NULL,
bool sig_handler=
true) {
85 scx::scx_parse_and_configure(argc, argv.data(),
86 trailer, sig_handler);
88 pybind11::arg(
"argc"),
89 pybind11::arg(
"argv"),
90 pybind11::arg(
"trailer") = NULL,
91 pybind11::arg(
"sig_handler") =
true)
94 .def(
"scx_start_cadi_server", &scx::scx_start_cadi_server,
95 pybind11::arg(
"start") =
true,
96 pybind11::arg(
"run") =
true,
97 pybind11::arg(
"debug") =
false)
98 .def(
"scx_enable_cadi_log", &scx::scx_enable_cadi_log,
99 pybind11::arg(
"log") =
true)
100 .def(
"scx_print_port_number", &scx::scx_print_port_number,
101 pybind11::arg(
"print") =
true)
103 .def(
"scx_print_statistics", &scx::scx_print_statistics,
104 pybind11::arg(
"print") =
true)
105 .def(
"scx_load_plugin", &scx::scx_load_plugin)
106 .def(
"scx_sync", &scx::scx_sync)
107 .def(
"scx_set_min_sync_latency",
108 static_cast<void (*)(
double)
>(&scx::scx_set_min_sync_latency))
109 .def(
"scx_set_min_sync_latency",
110 static_cast<void (*)(sg::ticks_t)
>(
111 &scx::scx_set_min_sync_latency))
112 .def(
"scx_get_min_sync_latency",
113 static_cast<double (*)()
>(&scx::scx_get_min_sync_latency))
114 .def(
"scx_get_min_sync_latency",
115 static_cast<sg::ticks_t (*)(sg::Tag<sg::ticks_t> *)
>(
116 &scx::scx_get_min_sync_latency))