Home
last modified time | relevance | path

Searched refs:cddl (Results 1 – 19 of 19) sorted by relevance

/zcbor-3.6.0/tests/fuzz/
DCMakeLists.txt23 -c ${CMAKE_CURRENT_LIST_DIR}/../cases/pet.cddl
32 --cddl ${CMAKE_CURRENT_LIST_DIR}/../cases/pet.cddl
48 -c ${CMAKE_CURRENT_LIST_DIR}/../cases/manifest12.cddl
58 --cddl ${CMAKE_CURRENT_LIST_DIR}/../cases/manifest12.cddl
75 -c ${CMAKE_CURRENT_LIST_DIR}/../cases/everything.cddl
85 --cddl ${CMAKE_CURRENT_LIST_DIR}/../cases/everything.cddl
/zcbor-3.6.0/tests/decode/test1_suit_old_formats/
DCMakeLists.txt16 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest-moran3.cddl
17 --no-prelude # manifest-moran3.cddl contains types that collide with types in prelude.cddl.
28 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest-moran4.cddl
/zcbor-3.6.0/tests/decode/test9_manifest14/
DCMakeLists.txt21 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/${MANIFEST}.cddl
22 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/cose.cddl
45 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/${MANIFEST}.cddl
46 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/cose.cddl
/zcbor-3.6.0/samples/pet/
DCMakeLists.txt17 …${CMAKE_CURRENT_LIST_DIR}/../../tests/cases/pet.cddl # Generate code for the data structures in pe…
18 -t Pet # Create a public API for decoding/encoding the "Pet" type from pet.cddl
30 zcbor convert -c ${CMAKE_CURRENT_LIST_DIR}/../../tests/cases/pet.cddl -t Pet
/zcbor-3.6.0/tests/scripts/
Dtest_zcbor.py63 cddl = self.my_types["SUIT_Envelope_Tagged"]
64 self.decoded = cddl.decode_str(data_string)
633 cddl = cddl_res.my_types['cfg']
638 decoded = cddl.decode_str_yaml(test_yaml)
647 cddl = cddl_res.my_types['Simples']
650 decoded = cddl.decode_str_yaml(test_yaml, yaml_compat=True)
653 encoded = cddl.str_to_yaml(cddl.from_yaml(test_yaml, yaml_compat=True), yaml_compat=True)
661 cddl = cddl_res.my_types['Floats']
664 decoded = cddl.decode_str_yaml(test_yaml)
672 encoded = cddl.str_to_yaml(cddl.from_yaml(test_yaml))
[all …]
/zcbor-3.6.0/tests/decode/test3_simple/
DCMakeLists.txt19 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/pet.cddl
30 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/serial_recovery.cddl
/zcbor-3.6.0/tests/encode/test1_suit/
DCMakeLists.txt16 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest3.cddl
/zcbor-3.6.0/tests/encode/test2_simple/
DCMakeLists.txt16 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/pet.cddl
/zcbor-3.6.0/tests/decode/test7_suit9_simple/
DCMakeLists.txt17 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest9_simple.cddl
/zcbor-3.6.0/tests/decode/test8_suit12/
DCMakeLists.txt16 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest12.cddl
/zcbor-3.6.0/tests/unit/test2_cpp/
DCMakeLists.txt24 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/pet.cddl
/zcbor-3.6.0/tests/encode/test3_corner_cases/
DCMakeLists.txt16 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/corner_cases.cddl
/zcbor-3.6.0/tests/decode/test2_suit/
DCMakeLists.txt18 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/manifest2.cddl
/zcbor-3.6.0/tests/encode/test4_senml/
DCMakeLists.txt18 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/senml.cddl
/zcbor-3.6.0/
DREADME.md158 …yaml) and its CDDL file [tests/cases/yaml_compatibility.cddl](tests/cases/yaml_compatibility.cddl).
223 python3 <zcbor base>/zcbor/zcbor.py code -c pet.cddl -d -t Pet --oc pet_decode.c --oh pet_decode.h
225 zcbor code -c pet.cddl -d -t Pet --oc pet_decode.c --oh pet_decode.h
234 python3 <zcbor base>/zcbor/zcbor.py convert -c pet.cddl -t Pet -i mypet.yaml -o mypet.cbor
236 zcbor convert -c pet.cddl -t Pet -i mypet.yaml -o mypet.cbor
239 …et.yaml, validates it against the Pet type in the CDDL description in pet.cddl, and writes binary …
247 python3 <zcbor base>/zcbor/zcbor.py validate -c pet.cddl -t Pet --yaml-compatibility -i mypet.json
249 zcbor validate -c pet.cddl -t Pet --yaml-compatibility -i mypet.json
252 …o their original form, and validates that against the Pet type in the CDDL description in pet.cddl.
320 See [pet.cddl](tests/cases/pet.cddl) for CDDL example code.
[all …]
DRELEASE_NOTES.md209 * tests: Fix an error in manifest3.cddl (encode/test1) (naming collision with 'uri')
283 **cddl-gen has been renamed to zcbor!**
384 # cddl-gen v. 0.3.0 (2021-11-17)
386 …ures should be reported as [Github issues](https://github.com/NordicSemiconductor/cddl-gen/issues).
398 * Change command line name from `cddl_gen` to `cddl-gen`
400 * Allow passing multiple cddl files via command line
403 … * This can give different names of e.g. struct members compared with previous versions of cddl-gen
418 * Move all cddl files into tests/cases
436 …tlined in the [CDDL spec](https://datatracker.ietf.org/doc/html/rfc8610) are supported by cddl-gen.
DARCHITECTURE.md52 ```cddl
62 ```cddl
/zcbor-3.6.0/tests/decode/test5_corner_cases/
DCMakeLists.txt19 -c ${CMAKE_CURRENT_LIST_DIR}/../../cases/corner_cases.cddl
/zcbor-3.6.0/zcbor/
Dzcbor.py3012 args.cddl.append(open(PRELUDE_PATH, 'r', encoding="utf-8"))
3034 print("Parsing files: " + ", ".join((c.name for c in args.cddl)))
3036 cddl_contents = linesep.join((c.read() for c in args.cddl))
3122 cddl_contents = linesep.join((c.read() for c in args.cddl))
3127 def read_data(args, cddl): argument
3132 cbor_str = cddl.from_yaml(f.read(), yaml_compat=args.yaml_compatibility)
3135 cbor_str = cddl.from_json(f.read(), yaml_compat=args.yaml_compatibility)
3139 cddl.validate_str(cbor_str)
3143 cddl.validate_str(cbor_str)
3148 def write_data(args, cddl, cbor_str): argument
[all …]