Lines Matching refs:states

69 	ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt),  1);  in put_time()
72 ret = zcbor_tag_put(states, ZCBOR_TAG_TIME_TSTR); in put_time()
79 tag_sz = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_time()
83 ret = zcbor_tstr_put_term(states, time_str, sizeof(time_str)); in put_time()
89 str_sz = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_time()
102 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_s64()
104 ret = zcbor_int64_encode(states, &value); in put_s64()
107 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_s64()
122 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_s32()
124 ret = zcbor_int32_encode(states, &value); in put_s32()
127 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_s32()
153 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_float()
155 ret = zcbor_float64_encode(states, value); in put_float()
158 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_float()
173 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_string()
175 ret = zcbor_tstr_encode_ptr(states, buf, buflen); in put_string()
178 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_string()
193 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_opaque()
195 ret = zcbor_bstr_encode_ptr(states, buf, buflen); in put_opaque()
198 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_opaque()
212 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_bool()
214 ret = zcbor_bool_encode(states, &value); in put_bool()
217 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_bool()
238 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_s64()
240 if (!zcbor_int64_decode(states, value)) { in get_s64()
245 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_s64()
254 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_s32()
256 if (!zcbor_int32_decode(states, value)) { in get_s32()
258 states->constant_state->error); in get_s32()
262 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_s32()
271 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_float()
273 if (!zcbor_float_decode(states, value)) { in get_float()
278 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_float()
290 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_string()
292 if (!zcbor_tstr_decode(states, &hndl)) { in get_string()
303 len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_string()
319 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_time_string()
321 if (!zcbor_tstr_decode(states, &hndl)) { in get_time_string()
337 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_time_numerical()
339 if (!zcbor_int64_decode(states, value)) { in get_time_numerical()
356 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_time()
358 success = zcbor_tag_decode(states, &tag); in get_time()
361 tag_sz = ICTX_CBOR_R_SZ(states[0].payload, in); in get_time()
394 data_len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_time()
406 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_bool()
408 if (!zcbor_bool_decode(states, value)) { in get_bool()
413 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_bool()
426 ZCBOR_STATE_D(states, 1, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_opaque()
430 ret = zcbor_bstr_start_decode_fragment(states, &hndl); in get_opaque()
440 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_opaque()