Home
last modified time | relevance | path

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

/zcbor-latest/samples/hello_world/src/
Dmain.c25 printf("Encoding failed: %d\r\n", zcbor_peek_error(encoding_state)); in main()
36 printf("Decoding failed: %d\r\n", zcbor_peek_error(decoding_state)); in main()
/zcbor-latest/tests/unit/test1_unit_tests/src/
Dmain.c277 zassert_equal(ZCBOR_ERR_NO_PAYLOAD, zcbor_peek_error(state_e), NULL); in ZTEST()
279 zassert_equal(ZCBOR_SUCCESS, zcbor_peek_error(state_e), NULL); in ZTEST()
896 zassert_equal(ZCBOR_ERR_INVALID_VALUE_ENCODING, zcbor_peek_error(state_e), NULL); in ZTEST()
914 …rt_equal(ZCBOR_ERR_INVALID_VALUE_ENCODING, zcbor_peek_error(state_d), "%s\n", zcbor_error_str(zcbo… in ZTEST()
916 …rt_equal(ZCBOR_ERR_INVALID_VALUE_ENCODING, zcbor_peek_error(state_d), "%s\n", zcbor_error_str(zcbo… in ZTEST()
1044 zassert_true(ret, "err: %d\n", zcbor_peek_error(state_d)); in ZTEST()
1050 zassert_true(ret, "err: %d\n", zcbor_peek_error(state_d)); in ZTEST()
1083 zassert_true(ret, "err: %d\n", zcbor_peek_error(state_d)); in ZTEST()
1155 zassert_true(ret, "err: %d\n", zcbor_peek_error(state)); in decode_inner_map()
1231 …zassert_equal(ZCBOR_ERR_ELEM_NOT_FOUND, zcbor_peek_error(state_d), "err: %d\n", zcbor_peek_error(s… in ZTEST()
[all …]
/zcbor-latest/tests/unit/test2_cpp/src/
Dmain.cpp67 printf("Encode error: %d\r\n", zcbor_peek_error(state_e)); in main()
104 printf("Decode error: %d\r\n", zcbor_peek_error(state_d)); in main()
/zcbor-latest/samples/pet/src/
Dpet_decode.c26 zcbor_log("%s error: %s\r\n", func, zcbor_error_str(zcbor_peek_error(state))); \
Dpet_encode.c26 zcbor_log("%s error: %s\r\n", func, zcbor_error_str(zcbor_peek_error(state))); \
Dmain.c72 printf("Encoding failed for pet2: %d\r\n", zcbor_peek_error(encoding_state)); in get_pet2()
/zcbor-latest/include/
Dzcbor_common.h373 static inline int zcbor_peek_error(const zcbor_state_t *state) in zcbor_peek_error() function
/zcbor-latest/
DRELEASE_NOTES.md320 * Add zcbor_peek_error() for reading the error value without clearing it.