Home
last modified time | relevance | path

Searched refs:zframe (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-2.7.6/include/drivers/
Dcan.h909 struct zcan_frame *zframe) in can_copy_frame_to_zframe() argument
911 zframe->id_type = (frame->can_id & BIT(31)) >> 31; in can_copy_frame_to_zframe()
912 zframe->rtr = (frame->can_id & BIT(30)) >> 30; in can_copy_frame_to_zframe()
913 zframe->id = frame->can_id & BIT_MASK(29); in can_copy_frame_to_zframe()
914 zframe->dlc = frame->can_dlc; in can_copy_frame_to_zframe()
915 memcpy(zframe->data, frame->data, sizeof(zframe->data)); in can_copy_frame_to_zframe()
924 static inline void can_copy_zframe_to_frame(const struct zcan_frame *zframe, in can_copy_zframe_to_frame() argument
927 frame->can_id = (zframe->id_type << 31) | (zframe->rtr << 30) | in can_copy_zframe_to_frame()
928 zframe->id; in can_copy_zframe_to_frame()
929 frame->can_dlc = zframe->dlc; in can_copy_zframe_to_frame()
[all …]
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsockets_can.c96 struct zcan_frame *zframe = in zcan_received_cb() local
105 can_copy_zframe_to_frame(zframe, &frame); in zcan_received_cb()
211 struct zcan_frame zframe; in zcan_sendto_ctx() local
243 can_copy_frame_to_zframe((struct can_frame *)buf, &zframe); in zcan_sendto_ctx()
245 ret = net_context_sendto(ctx, (void *)&zframe, sizeof(zframe), in zcan_sendto_ctx()
261 struct zcan_frame zframe; in zcan_recvfrom_ctx() local
300 if (net_pkt_read(pkt, (void *)&zframe, sizeof(zframe))) { in zcan_recvfrom_ctx()
309 can_copy_zframe_to_frame(&zframe, (struct can_frame *)buf); in zcan_recvfrom_ctx()