1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Generated using zcbor version 0.7.0
7  * https://github.com/NordicSemiconductor/zcbor
8  * Generated with a --default-max-qty of 3
9  */
10 
11 #ifndef PET_TYPES_H__
12 #define PET_TYPES_H__
13 
14 #include <stdint.h>
15 #include <stdbool.h>
16 #include <stddef.h>
17 #include <zcbor_common.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /** Which value for --default-max-qty this file was created with.
24  *
25  *  The define is used in the other generated file to do a build-time
26  *  compatibility check.
27  *
28  *  See `zcbor --help` for more information about --default-max-qty
29  */
30 #define DEFAULT_MAX_QTY 3
31 
32 struct Pet {
33 	struct zcbor_string names[3];
34 	size_t names_count;
35 	struct zcbor_string birthday;
36 	enum {
37 		_Pet_species_cat = 1,
38 		_Pet_species_dog = 2,
39 		_Pet_species_other = 3,
40 	} species_choice;
41 };
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* PET_TYPES_H__ */
48