2023-01-03 16:43:00 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 Nordic Semiconductor ASA
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2023-04-14 12:54:25 +02:00
|
|
|
*
|
2024-01-26 15:17:44 +01:00
|
|
|
* Generated using zcbor version 0.8.1
|
2023-01-03 16:43:00 +01:00
|
|
|
* https://github.com/zephyrproject-rtos/zcbor
|
2022-02-16 16:09:32 +01:00
|
|
|
* Generated with a --default-max-qty of 99
|
|
|
|
*/
|
|
|
|
|
2022-03-24 13:56:03 +01:00
|
|
|
#ifndef LWM2M_SENML_CBOR_TYPES_H__
|
|
|
|
#define LWM2M_SENML_CBOR_TYPES_H__
|
2022-02-16 16:09:32 +01:00
|
|
|
|
2023-01-03 15:05:51 +01:00
|
|
|
#include <stdint.h>
|
2022-02-16 16:09:32 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
2023-04-14 12:54:25 +02:00
|
|
|
#include <zcbor_common.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-01-03 16:43:00 +01:00
|
|
|
|
|
|
|
enum lwm2m_senml_cbor_key {
|
|
|
|
lwm2m_senml_cbor_key_bn = -2,
|
|
|
|
lwm2m_senml_cbor_key_bt = -3,
|
|
|
|
lwm2m_senml_cbor_key_n = 0,
|
|
|
|
lwm2m_senml_cbor_key_t = 6,
|
|
|
|
lwm2m_senml_cbor_key_vi = 2,
|
|
|
|
lwm2m_senml_cbor_key_vf = 2,
|
|
|
|
lwm2m_senml_cbor_key_vs = 3,
|
|
|
|
lwm2m_senml_cbor_key_vb = 4,
|
|
|
|
lwm2m_senml_cbor_key_vd = 8,
|
|
|
|
};
|
2022-04-28 09:30:06 +02:00
|
|
|
|
2022-02-16 16:09:32 +01:00
|
|
|
struct record_bn {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct zcbor_string record_bn;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
2022-09-12 12:08:02 +02:00
|
|
|
struct record_bt {
|
2024-01-10 10:00:53 +01:00
|
|
|
int64_t record_bt;
|
2022-09-12 12:08:02 +02:00
|
|
|
};
|
|
|
|
|
2022-02-16 16:09:32 +01:00
|
|
|
struct record_n {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct zcbor_string record_n;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
2022-09-12 12:08:02 +02:00
|
|
|
struct record_t {
|
2024-01-10 10:00:53 +01:00
|
|
|
int64_t record_t;
|
2022-09-12 12:08:02 +02:00
|
|
|
};
|
|
|
|
|
2024-01-10 10:00:53 +01:00
|
|
|
struct record_union_r {
|
2022-02-16 16:09:32 +01:00
|
|
|
union {
|
|
|
|
struct {
|
2024-01-10 10:00:53 +01:00
|
|
|
int64_t union_vi;
|
2022-04-26 10:33:48 +02:00
|
|
|
};
|
|
|
|
struct {
|
2024-01-10 10:00:53 +01:00
|
|
|
double union_vf;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
struct {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct zcbor_string union_vs;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
struct {
|
2024-01-10 10:00:53 +01:00
|
|
|
bool union_vb;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
struct {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct zcbor_string union_vd;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
2023-01-03 15:05:51 +01:00
|
|
|
struct {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct zcbor_string union_vlo;
|
2023-01-03 15:05:51 +01:00
|
|
|
};
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
2022-04-26 10:33:48 +02:00
|
|
|
enum {
|
2024-01-10 10:00:53 +01:00
|
|
|
union_vi_c,
|
|
|
|
union_vf_c,
|
|
|
|
union_vs_c,
|
|
|
|
union_vb_c,
|
|
|
|
union_vd_c,
|
|
|
|
union_vlo_c,
|
|
|
|
} record_union_choice;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
2024-01-10 10:00:53 +01:00
|
|
|
struct value_r {
|
2022-02-16 16:09:32 +01:00
|
|
|
union {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct zcbor_string value_tstr;
|
|
|
|
struct zcbor_string value_bstr;
|
|
|
|
int64_t value_int;
|
|
|
|
double value_float;
|
|
|
|
bool value_bool;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
2022-04-26 10:33:48 +02:00
|
|
|
enum {
|
2024-01-10 10:00:53 +01:00
|
|
|
value_tstr_c,
|
|
|
|
value_bstr_c,
|
|
|
|
value_int_c,
|
|
|
|
value_float_c,
|
|
|
|
value_bool_c,
|
|
|
|
} value_choice;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct key_value_pair {
|
2024-01-10 10:00:53 +01:00
|
|
|
int32_t key_value_pair_key;
|
|
|
|
struct value_r key_value_pair;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
2024-01-10 10:00:53 +01:00
|
|
|
struct record_key_value_pair_m {
|
|
|
|
struct key_value_pair record_key_value_pair_m;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct record {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct record_bn record_bn;
|
|
|
|
struct record_bt record_bt;
|
|
|
|
struct record_n record_n;
|
|
|
|
struct record_t record_t;
|
|
|
|
struct record_union_r record_union;
|
|
|
|
struct record_key_value_pair_m record_key_value_pair_m[5];
|
|
|
|
size_t record_key_value_pair_m_count;
|
2024-04-26 11:23:23 +02:00
|
|
|
bool record_bn_present;
|
|
|
|
bool record_bt_present;
|
|
|
|
bool record_n_present;
|
|
|
|
bool record_t_present;
|
|
|
|
bool record_union_present;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct lwm2m_senml {
|
2024-01-10 10:00:53 +01:00
|
|
|
struct record lwm2m_senml_record_m[CONFIG_LWM2M_RW_SENML_CBOR_RECORDS];
|
|
|
|
size_t lwm2m_senml_record_m_count;
|
2022-02-16 16:09:32 +01:00
|
|
|
};
|
|
|
|
|
2023-04-14 12:54:25 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-03-24 13:56:03 +01:00
|
|
|
#endif /* LWM2M_SENML_CBOR_TYPES_H__ */
|