Software APIs
sw
device
lib
testing
json
ottf.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
#ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_OTTF_H_
5
#define OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_OTTF_H_
6
7
#include "sw/device/lib/ujson/ujson_derive.h"
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
// clang-format off
12
13
#define MODULE_ID MAKE_MODULE_ID('j', 'o', 't')
14
15
#define STRUCT_OTTF_CRC(field, string) \
16
field(crc, uint32_t)
17
UJSON_SERDE_STRUCT(OttfCrc, ottf_crc_t, STRUCT_OTTF_CRC);
18
19
#undef MODULE_ID
20
21
// clang-format on
22
#ifdef __cplusplus
23
}
24
#endif
25
#endif
// OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_OTTF_H_
Return to
OpenTitan Documentation