Lines Matching refs:zframe
22 struct can_frame zframe; in ZTEST() local
35 socketcan_to_can_frame(&sframe, &zframe); in ZTEST()
38 LOG_HEXDUMP_DBG((const uint8_t *)&zframe, sizeof(zframe), "zframe"); in ZTEST()
41 zassert_equal(zframe.flags, expected.flags, "Flags not equal"); in ZTEST()
42 zassert_equal(zframe.id, expected.id, "CAN id invalid"); in ZTEST()
43 zassert_equal(zframe.dlc, expected.dlc, "Msg length invalid"); in ZTEST()
44 zassert_mem_equal(&zframe.data, &expected.data, can_dlc_to_bytes(expected.dlc), in ZTEST()
51 socketcan_to_can_frame(&sframe, &zframe); in ZTEST()
53 zassert_equal(zframe.flags, expected.flags, "Flags not equal"); in ZTEST()
54 zassert_equal(zframe.id, expected.id, "CAN id invalid"); in ZTEST()
64 struct can_frame zframe = { 0 }; in ZTEST() local
72 zframe.flags = CAN_FRAME_IDE; in ZTEST()
73 zframe.id = 1234U; in ZTEST()
74 zframe.dlc = can_bytes_to_dlc(sizeof(data)); in ZTEST()
75 memcpy(zframe.data, data, sizeof(data)); in ZTEST()
77 socketcan_from_can_frame(&zframe, &sframe); in ZTEST()
80 LOG_HEXDUMP_DBG((const uint8_t *)&zframe, sizeof(zframe), "zframe"); in ZTEST()
89 zframe.flags |= CAN_FRAME_RTR; in ZTEST()
91 socketcan_from_can_frame(&zframe, &sframe); in ZTEST()