Lines Matching refs:zframe
49 struct can_frame zframe = {0}; in tx() local
53 zframe.id = 0x1; in tx()
54 zframe.dlc = 8U; in tx()
56 for (i = 0; i < zframe.dlc; i++) { in tx()
57 zframe.data[i] = 0xF0 | i; in tx()
60 socketcan_from_can_frame(&zframe, &sframe); in tx()
111 struct can_frame zframe; in rx() local
131 socketcan_to_can_frame(&sframe, &zframe); in rx()
135 (zframe.flags & CAN_FRAME_IDE) != 0 ? 1 : 0, in rx()
136 (zframe.flags & CAN_FRAME_RTR) != 0 ? 1 : 0, in rx()
137 zframe.id, zframe.dlc); in rx()
139 if ((zframe.flags & CAN_FRAME_RTR) != 0) { in rx()
142 if (zframe.dlc > 8) { in rx()
143 data = (uint8_t *)zframe.data_32; in rx()
145 data = zframe.data; in rx()
148 LOG_HEXDUMP_INF(data, zframe.dlc, "Data"); in rx()