Home
last modified time | relevance | path

Searched full:nanopb (Results 1 – 25 of 165) sorted by relevance

1234567

/nanopb-3.4.0/tests/fixed_count/
Dfixed_count.proto1 /* Test nanopb fixed count option. */
5 import "nanopb.proto";
9 repeated int32 data = 1 [(nanopb).max_count = 3, (nanopb).fixed_count = true];
14 repeated Message1 data = 1 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
19 repeated Message2 data1 = 1 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
20 repeated Message2 data2 = 2 [(nanopb).max_count = 2, (nanopb).fixed_count = true];
28 …repeated SubMessage submsgs = 1 [(nanopb).type = FT_POINTER, (nanopb).max_count = 5, (nanopb).fixe…
29 …repeated string strings = 2 [(nanopb).type = FT_POINTER, (nanopb).max_count = 4, (nanopb).fixed_co…
/nanopb-3.4.0/tests/mem_release/
Dmem_release.proto2 import "nanopb.proto";
6 optional string dynamic_str = 1 [(nanopb).type = FT_POINTER];
7 repeated string dynamic_str_arr = 2 [(nanopb).type = FT_POINTER];
8 repeated SubMessage dynamic_submsg = 3 [(nanopb).type = FT_POINTER];
13 required SubMessage static_req_submsg = 1 [(nanopb).type = FT_STATIC];
14 optional SubMessage dynamic_submsg = 2 [(nanopb).type = FT_POINTER];
15 optional SubMessage static_opt_submsg = 3 [(nanopb).type = FT_STATIC];
16 repeated SubMessage static_rep_submsg = 4 [(nanopb).type = FT_STATIC, (nanopb).max_count=2];
22 optional SubMessage dynamic_ext = 100 [(nanopb).type = FT_POINTER];
23 optional SubMessage static_ext = 101 [(nanopb).type = FT_STATIC];
/nanopb-3.4.0/tests/intsizes/
Dintsizes.proto1 /* Test the integer size overriding in nanopb options.
11 import 'nanopb.proto';
14 required int32 req_int8 = 1 [(nanopb).int_size = IS_8];
15 required uint32 req_uint8 = 2 [(nanopb).int_size = IS_8];
16 required sint32 req_sint8 = 3 [(nanopb).int_size = IS_8];
17 required int32 req_int16 = 4 [(nanopb).int_size = IS_16];
18 required uint32 req_uint16 = 5 [(nanopb).int_size = IS_16];
19 required sint32 req_sint16 = 6 [(nanopb).int_size = IS_16];
20 required int32 req_int32 = 7 [(nanopb).int_size = IS_32];
21 required uint32 req_uint32 = 8 [(nanopb).int_size = IS_32];
[all …]
/nanopb-3.4.0/.github/workflows/
Dbinary_packages.yml21 path: nanopb
31 cd nanopb
37 openssl sha256 nanopb/dist/*.tar.gz
42 path: nanopb/dist/*.tar.gz
43 name: nanopb-binary-linux
47 tar xzf nanopb/dist/*.tar.gz
48 cd nanopb-*/tests
53 cd nanopb-*/examples
68 path: nanopb
80 cd nanopb
[all …]
Dplatformio_tests.yml21 path: nanopb
39 cd nanopb
44 cp -R nanopb/examples/platformio example
45 mkdir -p example/lib/nanopb
46 tar -xzf nanopb/Nanopb-*.tar.gz -C example/lib/nanopb
61 cp -R nanopb/examples/platformio "example with spaces"
62 mkdir -p "example with spaces/lib/nanopb"
63 tar -xzf nanopb/Nanopb-*.tar.gz -C "example with spaces/lib/nanopb"
72 ln -s ../nanopb lib/nanopb
75 echo "lib_deps = Nanopb" >> platformio.ini
Dpypi_publish.yml19 path: nanopb
28 cd nanopb/extra/poetry
33 openssl sha256 nanopb/extra/poetry/dist/*.whl
37 VERSION=$(grep "^version =" nanopb/extra/poetry/build/pyproject.toml | cut -d '"' -f 2)
38 if curl --head --silent --fail https://pypi.org/project/nanopb/$VERSION/; then
51 cd nanopb/extra/poetry/build
63 path: nanopb
72 python3 -m pip install --user --upgrade --pre nanopb
76 cd nanopb/tests/alltypes/
/nanopb-3.4.0/
DCMakeLists.txt3 project(nanopb C) project
5 set(nanopb_VERSION_STRING nanopb-0.4.7)
8 string(REPLACE "nanopb-" "" nanopb_VERSION ${nanopb_VERSION_STRING})
39 set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/nanopb")
51 set(generator_protos nanopb)
77 generator/protoc-gen-nanopb.bat
84 generator/protoc-gen-nanopb
91 add_library(protobuf-nanopb SHARED
99 set_target_properties(protobuf-nanopb PROPERTIES
101 install(TARGETS protobuf-nanopb EXPORT nanopb-targets
[all …]
DREADME.md1 Nanopb - Protocol Buffers for Embedded Systems
4 ![Latest change](https://github.com/nanopb/nanopb/actions/workflows/trigger_on_code_change.yml/badg…
5 ![Weekly build](https://github.com/nanopb/nanopb/actions/workflows/trigger_on_schedule.yml/badge.sv…
7 Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is
11 * **Homepage:** https://jpa.kapsi.fi/nanopb/
12 * **Git repository:** https://github.com/nanopb/nanopb/
13 * **Documentation:** https://jpa.kapsi.fi/nanopb/docs/
14 * **Forum:** https://groups.google.com/forum/#!forum/nanopb
15 * **Stable version downloads:** https://jpa.kapsi.fi/nanopb/download/
16 * **Pre-release binary packages:** https://github.com/nanopb/nanopb/actions/workflows/binary_packag…
[all …]
Dlibrary.json2 "name": "Nanopb",
5 …"description": "Nanopb is a plain-C implementation of Google's Protocol Buffers data format. It is…
8 "url": "https://github.com/nanopb/nanopb.git"
12 "email": "jpa@nanopb.mail.kapsi.fi",
13 "url": "http://koti.kapsi.fi/jpa/nanopb/"
/nanopb-3.4.0/extra/poetry/
Dpyproject.toml2 name = "nanopb"
4 description = "Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is especia…
7 repository = "https://github.com/nanopb/nanopb/"
9 homepage = "https://jpa.kapsi.fi/nanopb/"
10 documentation = "https://jpa.kapsi.fi/nanopb/docs/index.html"
13 include = ["nanopb/**/*", "nanopb/__init__.py"]
16 nanopb_generator = "nanopb.generator.nanopb_generator:main_cli"
17 protoc-gen-nanopb = "nanopb.generator.nanopb_generator:main_plugin"
Dpoetry_build.sh13 mkdir nanopb
15 mv generator nanopb/
16 touch nanopb/__init__.py nanopb/generator/__init__.py
17 make -C nanopb/generator/proto
/nanopb-3.4.0/tests/regression/issue_485/
DSConscript1 # Check that the int8_t and uint8_t types are not used in the nanopb core.
4 env.Match('pb_decode_c.matched', ["$NANOPB/pb_decode.c", 'uint8.expected'])
5 env.Match('pb_decode_h.matched', ["$NANOPB/pb_decode.h", 'uint8.expected'])
6 env.Match('pb_encode_c.matched', ["$NANOPB/pb_encode.c", 'uint8.expected'])
7 env.Match('pb_encode_h.matched', ["$NANOPB/pb_encode.h", 'uint8.expected'])
8 env.Match('pb_common_c.matched', ["$NANOPB/pb_common.c", 'uint8.expected'])
9 env.Match('pb_common_h.matched', ["$NANOPB/pb_common.h", 'uint8.expected'])
10 env.Match('pb_h.matched', ["$NANOPB/pb.h", 'uint8.expected'])
/nanopb-3.4.0/tests/inline/
Dinline.proto1 /* Test nanopb option parsing.
7 import "nanopb.proto";
11 required bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 32];
16 optional bytes data = 1 [(nanopb).type = FT_INLINE, (nanopb).max_size = 64];
/nanopb-3.4.0/tests/regression/issue_322/
Ddefaults.proto2 import 'nanopb.proto';
5 …optional bytes b1 = 1 [default = "\xDE\xAD\x00\xBE\xEF", (nanopb).max_size = 5, (nanopb).fixed_len…
6 optional bytes b2 = 2 [default = "\xDE\xAD\x00\xBE\xEF", (nanopb).max_size = 5];
7 optional bytes b3 = 3 [default = "\xDE\xAD\000\xBE\xEF", (nanopb).max_size = 15];
8 optional string s1 = 4 [default = "äö", (nanopb).max_size = 8];
/nanopb-3.4.0/tests/common/
Dunittestproto.proto3 import 'nanopb.proto';
6 repeated int32 data = 1 [(nanopb).max_count = 10];
10 repeated float data = 1 [(nanopb).max_count = 10];
14 required string data = 1 [(nanopb).max_length = 10];
18 required bytes data = 1 [(nanopb).max_size = 16];
23 // Nanopb does not care about the actual defined data type for callback
41 repeated string rep_str = 1 [(nanopb).type = FT_POINTER];
Dperson.proto3 import "nanopb.proto";
6 required string name = 1 [(nanopb).max_size = 40];
8 optional string email = 3 [(nanopb).max_size = 40];
17 required string number = 1 [(nanopb).max_size = 40];
21 repeated PhoneNumber phone = 4 [(nanopb).max_count = 5];
/nanopb-3.4.0/examples/cmake_relpath/
DREADME.txt1 Nanopb example "simple" using CMake
4 This example is the same as the simple nanopb example but built using CMake.
11 nanopb/examples/cmake_simple$ mkdir build
12 nanopb/examples/cmake_simple$ cd build/
13 nanopb/examples/cmake_simple/build$ cmake ..
14 nanopb/examples/cmake_simple/build$ make
/nanopb-3.4.0/examples/cmake_simple/
DREADME.txt1 Nanopb example "simple" using CMake
4 This example is the same as the simple nanopb example but built using CMake.
11 nanopb/examples/cmake_simple$ mkdir build
12 nanopb/examples/cmake_simple$ cd build/
13 nanopb/examples/cmake_simple/build$ cmake ..
14 nanopb/examples/cmake_simple/build$ make
/nanopb-3.4.0/tests/options/
Doptions.proto1 /* Test nanopb option parsing.
7 import "nanopb.proto";
28 required string fieldsize = 1 [(nanopb).max_size = 40];
29 required string fieldlen = 2 [(nanopb).max_length = 40];
36 required int32 int32_callback = 1 [(nanopb).type = FT_CALLBACK];
75 optional int32 skipped_field = 2 [(nanopb).type = FT_IGNORE];
96 optional int32 proto3field = 1 [(nanopb).proto3 = true];
109 required int32 foo = 1 [(nanopb).descriptorsize = DS_8];
110 required int32 foo2 = 2 [(nanopb).descriptorsize = DS_4];
117 optional int32 present = 1 [(nanopb).default_has = true];
[all …]
Dproto3_options.proto3 import "nanopb.proto";
13 int32 proto3_off = 2 [(nanopb).proto3 = false];
14 int32 proto3_on = 3 [(nanopb).proto3 = true];
16 SubMsg sng_submsg = 5 [(nanopb).proto3_singular_msgs = true];
/nanopb-3.4.0/tests/regression/issue_504/
Dtest.proto3 import "nanopb.proto";
7 SubMessage submessage = 1 [(nanopb).proto3_singular_msgs = true];
12 string somestring = 1 [(nanopb).type = FT_POINTER];
13 SubMessage2 submsg2 = 2 [(nanopb).type = FT_POINTER];
/nanopb-3.4.0/tests/regression/issue_141/
Dtestproto.proto3 import 'nanopb.proto';
7 repeated int32 array = 1 [(nanopb).max_count = 8];
16 string second = 6 [(nanopb).max_length = 8];
34 required string s = 3 [(nanopb).max_length = 32];
44 required string ss = 2 [(nanopb).max_length = 1];
49 required string sss = 2 [(nanopb).max_length = 2];
/nanopb-3.4.0/docs/
Dwhats_new.md1 # Nanopb: New features in nanopb 0.4
3 ## What's new in nanopb 0.4
5 Long in the making, nanopb 0.4 has seen some wide reaching improvements
11 compatibility with previous nanopb versions. For a list of breaking
16 The basic design of nanopb has always been that the information about
21 In nanopb-0.3.0 the field iteration logic was separated to
44 Previously nanopb was quite RAM-heavy on AVR, which cannot put normal
49 Nanopb generator is now available as a Python package, installable using
52 `pip install nanopb` and have the generator available on path as
61 Initially, nanopb generator was used in two steps: first calling
[all …]
/nanopb-3.4.0/tests/site_scons/site_tools/
Dnanopb.py2 Scons Builder for nanopb .proto definitions.
4 This tool will locate the nanopb generator and use it to generate .pb.c and
12 # Link nanopb core to the program
14 myprog = env.Program(["myprog.c", myproto, "$NANOPB/pb_encode.c", "$NANOPB/pb_decode.c"])
18 Normally, this script is used in the test environment of nanopb and it locates
19 the nanopb generator by a relative path. If this script is used in another
20 application, the path to nanopb root directory has to be defined:
22 env.SetDefault(NANOPB = "path/to/nanopb")
28 env.SetDefault(PROTOCFLAGS = "--plugin=protoc-gen-nanopb=path/to/protoc-gen-nanopb")
49 '''Find the path to nanopb root directory.'''
[all …]
/nanopb-3.4.0/spm-test/objc/
Dobjc-qualified.m1 #import "nanopb/pb.h"
2 #import <nanopb/pb_common.h>
3 #include "nanopb/pb_decode.h"

1234567