Software APIs
sw
device
tests
penetrationtests
json
extclk_sca_fi_commands.h
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#ifndef OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_EXTCLK_SCA_FI_COMMANDS_H_
6
#define OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_EXTCLK_SCA_FI_COMMANDS_H_
7
#include "sw/device/lib/ujson/ujson_derive.h"
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
12
// clang-format off
13
14
// EXTCLK SCA FI arguments
15
16
#define EXTCLK_SCA_FI_SUBCOMMAND(_, value) \
17
value(_, Configure)
18
UJSON_SERDE_ENUM(ExtClkScaFiSubcommand, extclk_sca_fi_subcommand_t, EXTCLK_SCA_FI_SUBCOMMAND);
19
20
#define EXTCLK_SCA_FI_CFG(field, string) \
21
field(sel, bool) \
22
field(hi_speed_sel, bool)
23
UJSON_SERDE_STRUCT(PenetrationtestExtClkScaFiCfg, penetrationtest_extclk_sca_fi_cfg_t, EXTCLK_SCA_FI_CFG);
24
25
// clang-format on
26
27
#ifdef __cplusplus
28
}
29
#endif
30
#endif
// OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_EXTCLK_SCA_FI_COMMANDS_H_
Return to
OpenTitan Documentation