Searched refs:DATA_SIZE_SF (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/subsys/canbus/isotp/implementation/src/ |
D | main.c | 13 #define DATA_SIZE_SF 7 macro 59 ret = isotp_send(&send_ctx, can_dev, random_data, DATA_SIZE_SF, in send_sf() 72 zassert_equal(buf->len, DATA_SIZE_SF, "Data length (%d) should be %d.", in get_sf_net() 73 buf->len, DATA_SIZE_SF); in get_sf_net() 91 zassert_equal(ret, DATA_SIZE_SF - 1, "recv returned %d", ret); in get_sf() 93 ret = memcmp(random_data, data_buf, DATA_SIZE_SF); in get_sf()
|
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/ |
D | main.c | 14 #define DATA_SIZE_SF 7 macro 20 #define SF_PCI_BYTE_1 ((SF_PCI_TYPE << PCI_TYPE_POS) | DATA_SIZE_SF) 22 #define SF_PCI_BYTE_LEN_8 ((SF_PCI_TYPE << PCI_TYPE_POS) | (DATA_SIZE_SF + 1)) 24 #define DATA_SIZE_SF (TX_DL - 2) macro 34 #define SF_PCI_BYTE_2 DATA_SIZE_SF 195 ret = isotp_send(&send_ctx, can_dev, random_data, DATA_SIZE_SF, in send_sf() 342 memcpy(&frame->data[2], data, DATA_SIZE_SF); in prepare_sf_frame() 343 frame->length = DATA_SIZE_SF + 2; in prepare_sf_frame() 345 memcpy(&frame->data[1], data, DATA_SIZE_SF); in prepare_sf_frame() 346 frame->length = DATA_SIZE_SF + 1; in prepare_sf_frame() [all …]
|