15#include <pybind11/pybind11.h>
16#include <pybind11/stl.h>
22namespace py = pybind11;
28std::map<std::string, FixedLengthCommandType>
swap_commands_map(
const std::map<FixedLengthCommandType, std::string>& command_map)
30 std::map<std::string, FixedLengthCommandType> swapped_map;
31 for (
auto& cmd: command_map) {
32 swapped_map.emplace( std::pair<std::string,FixedLengthCommandType>(cmd.second, cmd.first) );
40 py::enum_<BoardType>(m,
"BoardType")
54 py::enum_<BoardRevision>(m,
"BoardRevision")
72 py::enum_<CarrierType>(m,
"CarrierType")
83 py::enum_<DesignType>(m,
"DesignType")
101 py::enum_<FixedLengthCommandType>(m,
"FixedLengthCommandType")
119 py::enum_<ClockSource>(m,
"ClockSource")
127 py::enum_<TimestampSource>(m,
"TimestampSource")
133 py::enum_<TimestampEpoch>(m,
"TimestampEpoch")
134 .value(
"kUNIX",
kUNIX)
138 py::enum_<TimestampTimebase>(m,
"TimestampTimebase")
static std::map< uint8_t, std::string > get_endpoint_state_map()
Get the states map.
static constexpr size_t hsi_buffer_event_words_number
static const std::vector< BoardType > & get_library_supported_boards()
static const std::map< std::string, std::string > & get_clock_config_map()
static const std::vector< DesignType > & get_library_supported_designs()
static const std::map< uint64_t, BoardRevision > & get_board_uid_revision_map()
static const std::map< DesignType, std::string > & get_design_type_map()
static const std::map< BoardRevision, std::string > & get_board_revision_map()
static const std::map< BoardType, std::string > & get_board_type_map()
static const std::map< CarrierType, std::string > & get_carrier_type_map()
static const uint32_t required_major_firmware_version
void register_definitions(py::module &m)
std::map< std::string, FixedLengthCommandType > swap_commands_map(const std::map< FixedLengthCommandType, std::string > &command_map)