Skip to content

Commit b932204

Browse files
defining common structures for cbor
1 parent bd546c9 commit b932204

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/cbor/CBOR.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
This file is part of the Arduino_CloudUtils library.
3+
4+
Copyright (c) 2024 Arduino SA
5+
6+
This Source Code Form is subject to the terms of the Mozilla Public
7+
License, v. 2.0. If a copy of the MPL was not distributed with this
8+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+
*/
10+
#pragma once
11+
12+
typedef uint64_t CBORTag;
13+
14+
namespace cbor {
15+
namespace tag {
16+
enum : CBORTag {
17+
// Unknown Command Tag https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
18+
CBORUnknownCmdTag16b = 0xffff, // invalid tag
19+
CBORUnknownCmdTag32b = 0xffffffff, // invalid tag
20+
CBORUnknownCmdTag64b = 0xffffffffffffffff, // invalid tag
21+
CBORUnknownCmdTag = CBORUnknownCmdTag32b
22+
};
23+
}
24+
}

0 commit comments

Comments
 (0)