51 arm_fast_model_pybind(pybind11::module_ &m_internal)
53 auto arm_fast_model = m_internal.def_submodule(
"arm_fast_model");
55 .def(
"scx_initialize", [](std::string
id) {
56 scx::scx_initialize(
id);
60 .def(
"scx_load_application", &scx::scx_load_application)
61 .def(
"scx_load_application_all", &scx::scx_load_application_all)
62 .def(
"scx_load_data", &scx::scx_load_data)
63 .def(
"scx_load_data_all", &scx::scx_load_data_all)
69 .def(
"scx_set_parameter",
70 static_cast<bool (*)(
const std::string &,
const std::string &)
>(
71 &scx::scx_set_parameter))
72 .def(
"scx_get_parameter",
73 static_cast<bool (*)(
const std::string &, std::string &)
>(
74 &scx::scx_get_parameter))
75 .def(
"scx_get_parameter_list", &scx::scx_get_parameter_list)
77 .def(
"scx_set_cpi_file", &scx::scx_set_cpi_file)
81 .def(
"scx_cpulimit", &scx::scx_cpulimit)
82 .def(
"scx_timelimit", &scx::scx_timelimit)
83 .def(
"scx_simlimit", &scx::scx_simlimit)
85 .def(
"scx_parse_and_configure",
87 const char *trailer=NULL,
bool sig_handler=
true) {
88 scx::scx_parse_and_configure(argc, argv.data(),
89 trailer, sig_handler);
91 pybind11::arg(
"argc"),
92 pybind11::arg(
"argv"),
93 pybind11::arg(
"trailer") = NULL,
94 pybind11::arg(
"sig_handler") =
true)
97 .def(
"scx_start_cadi_server", &scx::scx_start_cadi_server,
98 pybind11::arg(
"start") =
true,
99 pybind11::arg(
"run") =
true,
100 pybind11::arg(
"debug") =
false)
101 .def(
"scx_enable_cadi_log", &scx::scx_enable_cadi_log,
102 pybind11::arg(
"log") =
true)
103 .def(
"scx_print_port_number", &scx::scx_print_port_number,
104 pybind11::arg(
"print") =
true)
106 .def(
"scx_print_statistics", &scx::scx_print_statistics,
107 pybind11::arg(
"print") =
true)
108 .def(
"scx_load_plugin", &scx::scx_load_plugin)
109 .def(
"scx_sync", &scx::scx_sync)
110 .def(
"scx_set_min_sync_latency",
111 static_cast<void (*)(
double)
>(&scx::scx_set_min_sync_latency))
112 .def(
"scx_set_min_sync_latency",
113 static_cast<void (*)(sg::ticks_t)
>(
114 &scx::scx_set_min_sync_latency))
115 .def(
"scx_get_min_sync_latency",
116 static_cast<double (*)()
>(&scx::scx_get_min_sync_latency))
117 .def(
"scx_get_min_sync_latency",
118 static_cast<sg::ticks_t (*)(sg::Tag<sg::ticks_t> *)
>(
119 &scx::scx_get_min_sync_latency))
122 EmbeddedPyBind embed_(
"arm_fast_model", &arm_fast_model_pybind);