2121
2222static bool encode_repeated_agnss_req_types (zcbor_state_t * state ,
2323 const struct agnss_req_types_r * input );
24+ static bool encode_repeated_agnss_req_eci (zcbor_state_t * state , const struct agnss_req_eci * input );
2425static bool encode_repeated_agnss_req_filtered (zcbor_state_t * state ,
2526 const struct agnss_req_filtered * input );
2627static bool encode_repeated_agnss_req_mask (zcbor_state_t * state ,
2728 const struct agnss_req_mask * input );
29+ static bool encode_repeated_agnss_req_mcc (zcbor_state_t * state , const struct agnss_req_mcc * input );
30+ static bool encode_repeated_agnss_req_mnc (zcbor_state_t * state , const struct agnss_req_mnc * input );
2831static bool encode_repeated_agnss_req_rsrp (zcbor_state_t * state ,
2932 const struct agnss_req_rsrp * input );
33+ static bool encode_repeated_agnss_req_tac (zcbor_state_t * state , const struct agnss_req_tac * input );
3034static bool encode_agnss_req (zcbor_state_t * state , const struct agnss_req * input );
3135
3236static bool encode_repeated_agnss_req_types (zcbor_state_t * state ,
@@ -53,6 +57,23 @@ static bool encode_repeated_agnss_req_types(zcbor_state_t *state,
5357 return tmp_result ;
5458}
5559
60+ static bool encode_repeated_agnss_req_eci (zcbor_state_t * state , const struct agnss_req_eci * input )
61+ {
62+ zcbor_log ("%s\r\n" , __func__ );
63+
64+ bool tmp_result = ((((zcbor_uint32_put (state , (2 )))) &&
65+ (zcbor_uint32_encode (state , (& (* input ).agnss_req_eci )))));
66+
67+ if (!tmp_result ) {
68+ zcbor_trace_file (state );
69+ zcbor_log ("%s error: %s\r\n" , __func__ , zcbor_error_str (zcbor_peek_error (state )));
70+ } else {
71+ zcbor_log ("%s success\r\n" , __func__ );
72+ }
73+
74+ return tmp_result ;
75+ }
76+
5677static bool encode_repeated_agnss_req_filtered (zcbor_state_t * state ,
5778 const struct agnss_req_filtered * input )
5879{
@@ -88,6 +109,40 @@ static bool encode_repeated_agnss_req_mask(zcbor_state_t *state, const struct ag
88109 return tmp_result ;
89110}
90111
112+ static bool encode_repeated_agnss_req_mcc (zcbor_state_t * state , const struct agnss_req_mcc * input )
113+ {
114+ zcbor_log ("%s\r\n" , __func__ );
115+
116+ bool tmp_result = ((((zcbor_uint32_put (state , (5 )))) &&
117+ (zcbor_uint32_encode (state , (& (* input ).agnss_req_mcc )))));
118+
119+ if (!tmp_result ) {
120+ zcbor_trace_file (state );
121+ zcbor_log ("%s error: %s\r\n" , __func__ , zcbor_error_str (zcbor_peek_error (state )));
122+ } else {
123+ zcbor_log ("%s success\r\n" , __func__ );
124+ }
125+
126+ return tmp_result ;
127+ }
128+
129+ static bool encode_repeated_agnss_req_mnc (zcbor_state_t * state , const struct agnss_req_mnc * input )
130+ {
131+ zcbor_log ("%s\r\n" , __func__ );
132+
133+ bool tmp_result = ((((zcbor_uint32_put (state , (6 )))) &&
134+ (zcbor_uint32_encode (state , (& (* input ).agnss_req_mnc )))));
135+
136+ if (!tmp_result ) {
137+ zcbor_trace_file (state );
138+ zcbor_log ("%s error: %s\r\n" , __func__ , zcbor_error_str (zcbor_peek_error (state )));
139+ } else {
140+ zcbor_log ("%s success\r\n" , __func__ );
141+ }
142+
143+ return tmp_result ;
144+ }
145+
91146static bool encode_repeated_agnss_req_rsrp (zcbor_state_t * state , const struct agnss_req_rsrp * input )
92147{
93148 zcbor_log ("%s\r\n" , __func__ );
@@ -105,6 +160,23 @@ static bool encode_repeated_agnss_req_rsrp(zcbor_state_t *state, const struct ag
105160 return tmp_result ;
106161}
107162
163+ static bool encode_repeated_agnss_req_tac (zcbor_state_t * state , const struct agnss_req_tac * input )
164+ {
165+ zcbor_log ("%s\r\n" , __func__ );
166+
167+ bool tmp_result = ((((zcbor_uint32_put (state , (8 )))) &&
168+ (zcbor_uint32_encode (state , (& (* input ).agnss_req_tac )))));
169+
170+ if (!tmp_result ) {
171+ zcbor_trace_file (state );
172+ zcbor_log ("%s error: %s\r\n" , __func__ , zcbor_error_str (zcbor_peek_error (state )));
173+ } else {
174+ zcbor_log ("%s success\r\n" , __func__ );
175+ }
176+
177+ return tmp_result ;
178+ }
179+
108180static bool encode_agnss_req (zcbor_state_t * state , const struct agnss_req * input )
109181{
110182 zcbor_log ("%s\r\n" , __func__ );
@@ -113,20 +185,20 @@ static bool encode_agnss_req(zcbor_state_t *state, const struct agnss_req *input
113185 (((zcbor_map_start_encode (state , 8 ) &&
114186 (((!(* input ).agnss_req_types_present ||
115187 encode_repeated_agnss_req_types (state , (& (* input ).agnss_req_types ))) &&
116- ((( zcbor_uint32_put ( state , ( 2 )))) &&
117- ( zcbor_uint32_encode ( state , (& (* input ).agnss_req_eci ) ))) &&
188+ (!( * input ). agnss_req_eci_present ||
189+ encode_repeated_agnss_req_eci ( state , (& (* input ).agnss_req_eci ))) &&
118190 (!(* input ).agnss_req_filtered_present ||
119191 encode_repeated_agnss_req_filtered (state , (& (* input ).agnss_req_filtered ))) &&
120192 (!(* input ).agnss_req_mask_present ||
121193 encode_repeated_agnss_req_mask (state , (& (* input ).agnss_req_mask ))) &&
122- ((( zcbor_uint32_put ( state , ( 5 )))) &&
123- ( zcbor_uint32_encode ( state , (& (* input ).agnss_req_mcc ) ))) &&
124- ((( zcbor_uint32_put ( state , ( 6 )))) &&
125- ( zcbor_uint32_encode ( state , (& (* input ).agnss_req_mnc ) ))) &&
194+ (!( * input ). agnss_req_mcc_present ||
195+ encode_repeated_agnss_req_mcc ( state , (& (* input ).agnss_req_mcc ))) &&
196+ (!( * input ). agnss_req_mnc_present ||
197+ encode_repeated_agnss_req_mnc ( state , (& (* input ).agnss_req_mnc ))) &&
126198 (!(* input ).agnss_req_rsrp_present ||
127199 encode_repeated_agnss_req_rsrp (state , (& (* input ).agnss_req_rsrp ))) &&
128- ((( zcbor_uint32_put ( state , ( 8 )))) &&
129- ( zcbor_uint32_encode ( state , (& (* input ).agnss_req_tac ) )))) ||
200+ (!( * input ). agnss_req_tac_present ||
201+ encode_repeated_agnss_req_tac ( state , (& (* input ).agnss_req_tac )))) ||
130202 (zcbor_list_map_end_force_encode (state ), false)) &&
131203 zcbor_map_end_encode (state , 8 ))));
132204
0 commit comments