1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Generated using zcbor version 0.8.1 7 * https://github.com/NordicSemiconductor/zcbor 8 * Generated with a --default-max-qty of 3 9 */ 10 11 #ifndef PET_DECODE_H__ 12 #define PET_DECODE_H__ 13 14 #include <stdint.h> 15 #include <stdbool.h> 16 #include <stddef.h> 17 #include <string.h> 18 #include "pet_types.h" 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 #if DEFAULT_MAX_QTY != 3 25 #error "The type file was generated with a different default_max_qty than this file" 26 #endif 27 28 29 int cbor_decode_Pet( 30 const uint8_t *payload, size_t payload_len, 31 struct Pet *result, 32 size_t *payload_len_out); 33 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 #endif /* PET_DECODE_H__ */ 40