Home
last modified time | relevance | path

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

/zcbor-3.6.0/samples/pet/src/
Dmain.c90 struct Pet encoded_pet; in get_pet3() local
97 encoded_pet.names[0].value = first_name; in get_pet3()
98 encoded_pet.names[0].len = sizeof(first_name) - 1; in get_pet3()
99 encoded_pet.names[1].value = last_name; in get_pet3()
100 encoded_pet.names[1].len = sizeof(last_name) - 1; in get_pet3()
101 encoded_pet.names_count = 2; in get_pet3()
102 encoded_pet.birthday.value = timestamp3; in get_pet3()
103 encoded_pet.birthday.len = sizeof(timestamp3); in get_pet3()
104 encoded_pet.species_choice = Pet_species_other_c; in get_pet3()
106 err = cbor_encode_Pet(pet3, sizeof(pet3), &encoded_pet, NULL); in get_pet3()