5 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_PINMUX_CONFIG_H_
6 #define OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_PINMUX_CONFIG_H_
7 #include "sw/device/lib/ujson/ujson_derive.h"
12 #define MODULE_ID MAKE_MODULE_ID('j', 'p', 'x')
20 #if UJSON_SERDE_IMPL == 0
21 #include "sw/device/lib/testing/json/pinmux.h"
25 #define STRUCT_PINMUX_INPUT_SELECTION(field, string) \
26 field(peripheral, pinmux_peripheral_in_t, 16) \
27 field(selector, pinmux_insel_t, 16)
28 UJSON_SERDE_STRUCT(PinmuxInputSelection, pinmux_input_selection_t,
29 STRUCT_PINMUX_INPUT_SELECTION);
31 #define STRUCT_PINMUX_OUTPUT_SELECTION(field, string) \
32 field(mio, pinmux_mio_out_t, 16) \
33 field(selector, pinmux_outsel_t, 16)
34 UJSON_SERDE_STRUCT(PinmuxOutputSelection, pinmux_output_selection_t,
35 STRUCT_PINMUX_OUTPUT_SELECTION);
37 #define STRUCT_PINMUX_CONFIG(field, string) \
38 field(input, pinmux_input_selection_t) \
39 field(output, pinmux_output_selection_t)
40 UJSON_SERDE_STRUCT(PinmuxConfig, pinmux_config_t, STRUCT_PINMUX_CONFIG);
45 #ifndef RUST_PREPROCESSOR_EMIT