/nanopb-2.7.6/tests/stackusage/ |
D | stackusage.c | 17 static uint32_t g_stackbuf[MAX_STACK_ENTRIES]; 18 static volatile uint32_t *g_stackptr; 22 uint32_t i = 0; in start_stack_measuring() 23 g_stackptr = (volatile uint32_t*)((uintptr_t)&i - MAX_STACK_ENTRIES * sizeof(uint32_t)); in start_stack_measuring() 32 uint32_t i = 0; in end_stack_measuring() 37 return (MAX_STACK_ENTRIES - i) * sizeof(uint32_t); in end_stack_measuring()
|
/nanopb-2.7.6/tests/fuzztest/ |
D | random_data.h | 8 void random_set_seed(uint32_t seed); 9 uint32_t random_get_seed(); 12 uint32_t rand_word();
|
D | random_data.c | 8 static uint32_t g_random_seed = 1234; 10 void random_set_seed(uint32_t seed) in random_set_seed() 15 uint32_t random_get_seed() in random_get_seed() 22 uint32_t rand_word() in rand_word() 46 uint32_t w = rand_word(); in rand_byte() 61 uint32_t w = rand_word(); in rand_len() 113 uint32_t value; in rand_fill_protobuf()
|
/nanopb-2.7.6/ |
D | pb_common.c | 10 uint32_t word0; in load_descriptor_values() 11 uint32_t data_offset; in load_descriptor_values() 34 … uint32_t word1 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 1]); in load_descriptor_values() 46 … uint32_t word1 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 1]); in load_descriptor_values() 47 … uint32_t word2 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 2]); in load_descriptor_values() 48 … uint32_t word3 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 3]); in load_descriptor_values() 60 … uint32_t word1 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 1]); in load_descriptor_values() 61 … uint32_t word2 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 2]); in load_descriptor_values() 62 … uint32_t word3 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 3]); in load_descriptor_values() 63 … uint32_t word4 = PB_PROGMEM_READU32(iter->descriptor->field_info[iter->field_info_index + 4]); in load_descriptor_values() [all …]
|
D | pb_decode.c | 25 static bool checkreturn pb_decode_varint32_eof(pb_istream_t *stream, uint32_t *dest, bool *eof); 32 …ault_extension_decoder(pb_istream_t *stream, pb_extension_t *extension, uint32_t tag, pb_wire_type… 33 static bool checkreturn decode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_ty… 54 #define pb_uint64_t uint32_t 63 uint32_t bitfield[(PB_MAX_REQUIRED_FIELDS + 31) / 32]; 170 static bool checkreturn pb_decode_varint32_eof(pb_istream_t *stream, uint32_t *dest, bool *eof) in pb_decode_varint32_eof() 173 uint32_t result; in pb_decode_varint32_eof() 218 result |= (uint32_t)(byte & 0x7F) << bitpos; in pb_decode_varint32_eof() 234 bool checkreturn pb_decode_varint32(pb_istream_t *stream, uint32_t *dest) in pb_decode_varint32() 276 uint32_t length; in pb_skip_string() [all …]
|
D | pb_encode.c | 31 static bool checkreturn pb_encode_varint_32(pb_ostream_t *stream, uint32_t low, uint32_t high); 42 #define pb_uint64_t uint32_t 570 static bool checkreturn pb_encode_varint_32(pb_ostream_t *stream, uint32_t low, uint32_t high) in pb_encode_varint_32() 617 return pb_encode_varint_32(stream, (uint32_t)value, (uint32_t)(value >> 32)); in pb_encode_varint() 635 uint32_t val = *(const uint32_t*)value; in pb_encode_fixed32() 661 bool checkreturn pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number) in pb_encode_tag() 764 uint32_t value = safe_read_bool(field->pData) ? 1 : 0; in pb_enc_bool() 780 else if (field->data_size == sizeof(uint32_t)) in pb_enc_varint() 781 value = *(const uint32_t*)field->pData; in pb_enc_varint() 809 return pb_encode_varint_32(stream, (uint32_t)value, (uint32_t)-1); in pb_enc_varint() [all …]
|
D | pb.h | 257 typedef uint32_t pb_size_t; 281 const uint32_t *field_info; 325 PB_STATIC_ASSERT(sizeof(uint64_t) == 2 * sizeof(uint32_t), UINT64_T_WRONG_SIZE) 399 uint32_t tag, pb_wire_type_t wire_type); 461 const uint32_t structname ## _field_info[] PB_PROGMEM = \ 717 (0 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(data_offset) & 0xFF) << 16) | \ 718 (((uint32_t)(size_offset) & 0x0F) << 24) | (((uint32_t)(data_size) & 0x0F) << 28)), 721 …(1 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(array_size) & 0xFFF) << 16) | (((uint32_… 722 …(((uint32_t)(data_offset) & 0xFFFF) | (((uint32_t)(data_size) & 0xFFF) << 16) | (((uint32_t)(tag) … 725 (2 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(array_size) & 0xFFFF) << 16)), \ [all …]
|
D | pb_encode.h | 137 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
|
D | pb_common.h | 33 bool pb_field_iter_find(pb_field_iter_t *iter, uint32_t tag);
|
D | pb_decode.h | 148 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof); 163 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
|
/nanopb-2.7.6/tests/site_scons/platforms/stm32/ |
D | vectors.c | 12 uint32_t args[3]; in HardFaultHandler() 14 args[1] = (uint32_t)"HARDFAULT"; in HardFaultHandler()
|
/nanopb-2.7.6/tests/alltypes_pointer/ |
D | encode_alltypes_pointer.c | 18 uint32_t req_uint32 = 1003; in main() 23 uint32_t req_fixed32 = 1008; in main() 42 uint32_t rep_uint32[5] = {0, 0, 0, 0, 2003}; in main() 47 uint32_t rep_fixed32[5] = {0, 0, 0, 0, 2008}; in main() 58 static uint32_t rep_substuff3 = 2016; in main() 68 uint32_t rep_farray2[3] = {0, 0, 2095}; in main() 73 uint32_t opt_uint32 = 3043; in main() 78 uint32_t opt_fixed32 = 3048; in main() 100 static uint32_t uint32_min = 0; in main() 101 static uint32_t uint32_max = UINT32_MAX; in main()
|
/nanopb-2.7.6/tests/site_scons/platforms/avr/ |
D | run_test.c | 26 static void uart_tx_hook(struct avr_irq_t * irq, uint32_t value, void * param) in uart_tx_hook() 51 static void uart_xon_hook(struct avr_irq_t * irq, uint32_t value, void * param) in uart_xon_hook() 89 static void uart_xoff_hook(struct avr_irq_t * irq, uint32_t value, void * param) in uart_xoff_hook() 100 uint32_t flags = 0; in init_uart() 117 static void status_ok_hook(struct avr_irq_t * irq, uint32_t value, void * param) in status_ok_hook()
|
/nanopb-2.7.6/tests/regression/issue_125/ |
D | extensionbug.expected | 2 uint32_t field2
|
/nanopb-2.7.6/extra/ |
D | pb_syshdr.h | 24 typedef unsigned int uint32_t; typedef 42 typedef uint32_t size_t;
|
/nanopb-2.7.6/tests/regression/issue_253/ |
D | short_array.c | 16 msg.rep_uint32[0] = ((uint32_t)1 << 31); in main()
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb.h | 257 typedef uint32_t pb_size_t; 281 const uint32_t *field_info; 325 PB_STATIC_ASSERT(sizeof(uint64_t) == 2 * sizeof(uint32_t), UINT64_T_WRONG_SIZE) 399 uint32_t tag, pb_wire_type_t wire_type); 461 const uint32_t structname ## _field_info[] PB_PROGMEM = \ 717 (0 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(data_offset) & 0xFF) << 16) | \ 718 (((uint32_t)(size_offset) & 0x0F) << 24) | (((uint32_t)(data_size) & 0x0F) << 28)), 721 …(1 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(array_size) & 0xFFF) << 16) | (((uint32_… 722 …(((uint32_t)(data_offset) & 0xFFFF) | (((uint32_t)(data_size) & 0xFFF) << 16) | (((uint32_t)(tag) … 725 (2 | (((tag) << 2) & 0xFF) | ((type) << 8) | (((uint32_t)(array_size) & 0xFFFF) << 16)), \ [all …]
|
D | pb_encode.h | 137 bool pb_encode_tag(pb_ostream_t *stream, pb_wire_type_t wiretype, uint32_t field_number); 144 bool pb_encode_varint(pb_ostream_t *stream, uint32_t value);
|
D | pb_common.h | 33 bool pb_field_iter_find(pb_field_iter_t *iter, uint32_t tag);
|
D | pb_decode.h | 148 bool pb_decode_tag(pb_istream_t *stream, pb_wire_type_t *wire_type, uint32_t *tag, bool *eof); 163 bool pb_decode_varint32(pb_istream_t *stream, uint32_t *dest);
|
/nanopb-2.7.6/tests/backwards_compatibility/ |
D | alltypes_legacy.h | 46 uint32_t uint32_min; 47 uint32_t uint32_max; 62 uint32_t substuff3; 73 uint32_t req_uint32; 78 uint32_t req_fixed32; 93 uint32_t rep_uint32[5]; 103 uint32_t rep_fixed32[5]; 127 uint32_t opt_uint32; 137 uint32_t opt_fixed32;
|
/nanopb-2.7.6/tests/options/ |
D | options_h.expected | 21 uint32_t overriden
|
/nanopb-2.7.6/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 40 uint32_t value; in read_fixed32() 44 TEST(value == *(uint32_t*)*arg); in read_fixed32() 136 uint32_t** expected = (uint32_t**)arg; in read_repeated_fixed32() 137 uint32_t value; in read_repeated_fixed32() 242 uint32_t rep_fixed32[5] = {0, 0, 0, 0, 2008}; in check_alltypes() 257 uint32_t sng_fixed32 = 3048; in check_alltypes()
|
/nanopb-2.7.6/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 40 uint32_t value; in read_fixed32() 44 TEST(value == *(uint32_t*)*arg); in read_fixed32() 137 uint32_t** expected = (uint32_t**)arg; in read_repeated_fixed32() 138 uint32_t value; in read_repeated_fixed32() 237 uint32_t req_fixed32 = 1008; in check_alltypes() 252 uint32_t rep_fixed32[5] = {0, 0, 0, 0, 2008}; in check_alltypes() 267 uint32_t opt_fixed32 = 3048; in check_alltypes()
|
/nanopb-2.7.6/tests/raw_decode/ |
D | raw_decode.c | 68 uint32_t tag; in raw_decode() 126 uint32_t value; in raw_decode()
|