Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 134) sorted by relevance

123456

/Zephyr-Core-3.5.0/samples/subsys/logging/syst/src/
Dmain.c36 struct test_frame frame = { 0 }; in log_msgs() local
73 frame.rtr = 1U; in log_msgs()
74 frame.id_type = 1U; in log_msgs()
75 frame.std_id = 1234U; in log_msgs()
76 frame.dlc = sizeof(data); in log_msgs()
77 memcpy(frame.data, data, sizeof(data)); in log_msgs()
79 LOG_HEXDUMP_ERR((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
80 LOG_HEXDUMP_WRN((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
81 LOG_HEXDUMP_INF((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
82 LOG_HEXDUMP_DBG((const uint8_t *)&frame, sizeof(frame), "frame"); in log_msgs()
/Zephyr-Core-3.5.0/arch/xtensa/core/
Dxtensa-asm2.c28 _xtensa_irq_stack_frame_a11_t *frame; in xtensa_init_stack() local
45 const int bsasz = sizeof(*frame) - 16; in xtensa_init_stack()
47 frame = (void *)(((char *) stack_top) - bsasz); in xtensa_init_stack()
49 (void)memset(frame, 0, bsasz); in xtensa_init_stack()
51 frame->bsa.pc = (uintptr_t)z_thread_entry; in xtensa_init_stack()
52 frame->bsa.ps = PS_WOE | PS_UM | PS_CALLINC(1); in xtensa_init_stack()
55 frame->bsa.threadptr = thread->tls; in xtensa_init_stack()
63 frame->a7 = (uintptr_t)arg1; /* a7 */ in xtensa_init_stack()
64 frame->a6 = (uintptr_t)entry; /* a6 */ in xtensa_init_stack()
65 frame->a5 = 0; /* a5 */ in xtensa_init_stack()
[all …]
Dcoredump.c132 _xtensa_irq_stack_frame_raw_t *frame = (void *)esf; in arch_coredump_info_dump() local
133 _xtensa_irq_bsa_t *bsa = frame->ptr_to_bsa; in arch_coredump_info_dump()
138 num_high_regs = (uint8_t *)bsa - (uint8_t *)frame + sizeof(void *); in arch_coredump_info_dump()
158 arch_blk.r.a4 = frame->blks[regs_blk_remaining].r0; in arch_coredump_info_dump()
159 arch_blk.r.a5 = frame->blks[regs_blk_remaining].r1; in arch_coredump_info_dump()
160 arch_blk.r.a6 = frame->blks[regs_blk_remaining].r2; in arch_coredump_info_dump()
161 arch_blk.r.a7 = frame->blks[regs_blk_remaining].r3; in arch_coredump_info_dump()
166 arch_blk.r.a8 = frame->blks[regs_blk_remaining].r0; in arch_coredump_info_dump()
167 arch_blk.r.a9 = frame->blks[regs_blk_remaining].r1; in arch_coredump_info_dump()
168 arch_blk.r.a10 = frame->blks[regs_blk_remaining].r2; in arch_coredump_info_dump()
[all …]
Dxtensa_backtrace.c63 bool z_xtensa_backtrace_get_next_frame(struct z_xtensa_backtrace_frame_t *frame) in z_xtensa_backtrace_get_next_frame() argument
70 char *base_save = (char *)frame->sp; in z_xtensa_backtrace_get_next_frame()
72 frame->pc = frame->next_pc; in z_xtensa_backtrace_get_next_frame()
76 frame->next_pc = *((uint32_t *)(base_save - 16)); in z_xtensa_backtrace_get_next_frame()
77 frame->sp = *((uint32_t *)(base_save - 12)); in z_xtensa_backtrace_get_next_frame()
82 return (z_xtensa_stack_ptr_is_sane(frame->sp) && in z_xtensa_backtrace_get_next_frame()
84 z_xtensa_cpu_process_stack_pc(frame->pc))); in z_xtensa_backtrace_get_next_frame()
/Zephyr-Core-3.5.0/samples/drivers/can/babbling/src/
Dmain.c49 struct can_frame frame = {0}; in main() local
99 frame.flags |= CAN_FRAME_IDE; in main()
103 frame.flags |= CAN_FRAME_RTR; in main()
107 frame.flags |= CAN_FRAME_FDF; in main()
110 frame.id = CONFIG_SAMPLE_CAN_BABBLING_CAN_ID; in main()
114 (frame.flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in main()
115 (frame.flags & CAN_FRAME_IDE) != 0 ? 29 : 11, in main()
116 (frame.flags & CAN_FRAME_IDE) != 0 ? 8 : 3, frame.id, in main()
117 (frame.flags & CAN_FRAME_RTR) != 0 ? 1 : 0, in main()
118 (frame.flags & CAN_FRAME_FDF) != 0 ? 1 : 0); in main()
[all …]
/Zephyr-Core-3.5.0/tests/drivers/can/api/src/
Dclassic.c27 const struct can_frame *frame = user_data; in tx_std_callback_1() local
32 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
42 const struct can_frame *frame = user_data; in tx_std_callback_2() local
47 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
57 const struct can_frame *frame = user_data; in tx_ext_callback_1() local
62 zassert_equal(frame->id, TEST_CAN_EXT_ID_1, "ID does not match"); in tx_ext_callback_1()
72 const struct can_frame *frame = user_data; in tx_ext_callback_2() local
77 zassert_equal(frame->id, TEST_CAN_EXT_ID_2, "ID does not match"); in tx_ext_callback_2()
85 static void rx_std_callback_1(const struct device *dev, struct can_frame *frame, in rx_std_callback_1() argument
90 assert_frame_equal(frame, &test_std_frame_1, 0); in rx_std_callback_1()
[all …]
Dcanfd.c22 const struct can_frame *frame = user_data; in tx_std_callback_1() local
27 zassert_equal(frame->id, TEST_CAN_STD_ID_1, "ID does not match"); in tx_std_callback_1()
32 const struct can_frame *frame = user_data; in tx_std_callback_2() local
37 zassert_equal(frame->id, TEST_CAN_STD_ID_2, "ID does not match"); in tx_std_callback_2()
40 static void rx_std_callback_1(const struct device *dev, struct can_frame *frame, void *user_data) in rx_std_callback_1() argument
44 assert_frame_equal(frame, &test_std_frame_1, 0); in rx_std_callback_1()
51 static void rx_std_callback_2(const struct device *dev, struct can_frame *frame, void *user_data) in rx_std_callback_2() argument
55 assert_frame_equal(frame, &test_std_frame_2, 0); in rx_std_callback_2()
62 static void rx_std_callback_fd_1(const struct device *dev, struct can_frame *frame, in rx_std_callback_fd_1() argument
67 assert_frame_equal(frame, &test_std_fdf_frame_1, 0); in rx_std_callback_fd_1()
[all …]
/Zephyr-Core-3.5.0/drivers/can/
Dcan_loopback.c20 struct can_frame frame; member
48 const struct can_frame *frame, in receive_frame() argument
51 struct can_frame frame_tmp = *frame; in receive_frame()
54 frame->dlc, frame->id, in receive_frame()
55 (frame->flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in receive_frame()
56 (frame->flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in receive_frame()
65 struct can_loopback_frame frame; in tx_thread() local
73 ret = k_msgq_get(&data->tx_msgq, &frame, K_FOREVER); in tx_thread()
78 frame.cb(dev, 0, frame.cb_arg); in tx_thread()
89 can_frame_matches_filter(&frame.frame, &filter->filter)) { in tx_thread()
[all …]
Dcan_sja1000.c264 static void can_sja1000_read_frame(const struct device *dev, struct can_frame *frame) in can_sja1000_read_frame() argument
269 memset(frame, 0, sizeof(*frame)); in can_sja1000_read_frame()
274 frame->flags |= CAN_FRAME_RTR; in can_sja1000_read_frame()
277 frame->dlc = CAN_SJA1000_FRAME_INFO_DLC_GET(info); in can_sja1000_read_frame()
278 if (frame->dlc > CAN_MAX_DLC) { in can_sja1000_read_frame()
279 LOG_ERR("RX frame DLC %u exceeds maximum (%d)", frame->dlc, CAN_MAX_DLC); in can_sja1000_read_frame()
284 frame->flags |= CAN_FRAME_IDE; in can_sja1000_read_frame()
286 frame->id = FIELD_PREP(GENMASK(28, 21), in can_sja1000_read_frame()
288 frame->id |= FIELD_PREP(GENMASK(20, 13), in can_sja1000_read_frame()
290 frame->id |= FIELD_PREP(GENMASK(12, 5), in can_sja1000_read_frame()
[all …]
Dcan_native_posix_linux.c49 static void dispatch_frame(const struct device *dev, struct can_frame *frame) in dispatch_frame() argument
62 if (!can_frame_matches_filter(frame, &data->filters[filter_id].filter)) { in dispatch_frame()
67 tmp_frame = *frame; in dispatch_frame()
81 struct can_frame frame; in rx_thread() local
106 socketcan_to_can_frame(&sframe, &frame); in rx_thread()
109 frame.dlc, frame.id, in rx_thread()
110 (frame.flags & CAN_FRAME_IDE) != 0 ? "extended" : "standard", in rx_thread()
111 (frame.flags & CAN_FRAME_RTR) != 0 ? ", RTR frame" : ""); in rx_thread()
113 dispatch_frame(dev, &frame); in rx_thread()
121 static int can_npl_send(const struct device *dev, const struct can_frame *frame, in can_npl_send() argument
[all …]
Dcan_shell.c63 static void can_shell_print_frame(const struct shell *sh, const struct can_frame *frame) in can_shell_print_frame() argument
65 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame()
70 shell_fprintf(sh, SHELL_NORMAL, "(%05d) ", frame->timestamp); in can_shell_print_frame()
76 (frame->flags & CAN_FRAME_BRS) == 0 ? '-' : 'B', in can_shell_print_frame()
77 (frame->flags & CAN_FRAME_ESI) == 0 ? '-' : 'P'); in can_shell_print_frame()
82 (frame->flags & CAN_FRAME_IDE) != 0 ? 0 : 5, "", in can_shell_print_frame()
83 (frame->flags & CAN_FRAME_IDE) != 0 ? 8 : 3, in can_shell_print_frame()
84 (frame->flags & CAN_FRAME_IDE) != 0 ? in can_shell_print_frame()
85 frame->id & CAN_EXT_ID_MASK : frame->id & CAN_STD_ID_MASK); in can_shell_print_frame()
89 (frame->flags & CAN_FRAME_FDF) != 0 ? "" : " ", in can_shell_print_frame()
[all …]
Dcan_nxp_s32_canxl.c459 .frame = !!(filter->flags & CAN_FILTER_FDF) ?
477 data->rx_cbs[alloc].rx_info.frame, mask);
493 const struct can_frame *frame, argument
498 uint8_t data_length = can_dlc_to_bytes(frame->dlc);
507 if ((frame->flags & ~(CAN_FRAME_IDE | CAN_FRAME_FDF | CAN_FRAME_BRS)) != 0) {
508 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags);
512 if ((frame->flags & CAN_FRAME_FDF) != 0 &&
518 if ((frame->flags & CAN_FRAME_BRS) != 0 &&
524 if ((frame->flags & ~CAN_FRAME_IDE) != 0) {
525 LOG_ERR("unsupported CAN frame flags 0x%02x", frame->flags);
[all …]
Dcan_mcan.c615 struct can_frame frame = {0}; in can_mcan_get_message() local
642 frame.dlc = hdr.dlc; in can_mcan_get_message()
645 frame.flags |= CAN_FRAME_RTR; in can_mcan_get_message()
649 frame.flags |= CAN_FRAME_FDF; in can_mcan_get_message()
653 frame.flags |= CAN_FRAME_BRS; in can_mcan_get_message()
657 frame.flags |= CAN_FRAME_ESI; in can_mcan_get_message()
661 frame.timestamp = hdr.rxts; in can_mcan_get_message()
667 frame.id = hdr.ext_id; in can_mcan_get_message()
668 frame.flags |= CAN_FRAME_IDE; in can_mcan_get_message()
671 frame.id = hdr.std_id; in can_mcan_get_message()
[all …]
/Zephyr-Core-3.5.0/subsys/modem/
Dmodem_cmux.c107 uint8_t data_cnt = (cmux->frame.data_len < 8) ? cmux->frame.data_len : 8; in modem_cmux_log_unknown_frame()
110 snprintk(&data[i * 3], sizeof(data) - (i * 3), "%02X,", cmux->frame.data[i]); in modem_cmux_log_unknown_frame()
118 LOG_DBG("ch:%u, type:%u, data:%s", cmux->frame.dlci_address, cmux->frame.type, data); in modem_cmux_log_unknown_frame()
141 const struct modem_cmux_frame *frame) in modem_cmux_transmit_frame() argument
149 data_len = (space < frame->data_len) ? space : frame->data_len; in modem_cmux_transmit_frame()
156 byte = 0x01 | (frame->cr << 1) | (frame->dlci_address << 2); in modem_cmux_transmit_frame()
161 byte = frame->type | (frame->pf << 4); in modem_cmux_transmit_frame()
178 if (frame->type == MODEM_CMUX_FRAME_TYPE_UIH) { in modem_cmux_transmit_frame()
182 fcs = 0xFF - crc8(frame->data, data_len, MODEM_CMUX_FCS_POLYNOMIAL, fcs, true); in modem_cmux_transmit_frame()
186 ring_buf_put(&cmux->transmit_rb, frame->data, data_len); in modem_cmux_transmit_frame()
[all …]
/Zephyr-Core-3.5.0/subsys/canbus/isotp/
Disotp.c44 static inline void prepare_frame(struct can_frame *frame, struct isotp_msg_id *addr) in prepare_frame() argument
46 frame->id = addr->ext_id; in prepare_frame()
47 frame->flags = ((addr->flags & ISOTP_MSG_IDE) != 0 ? CAN_FRAME_IDE : 0) | in prepare_frame()
139 struct can_frame frame; in receive_send_fc() local
140 uint8_t *data = frame.data; in receive_send_fc()
146 prepare_frame(&frame, &rctx->tx_addr); in receive_send_fc()
155 payload_len = data - frame.data; in receive_send_fc()
159 memset(&frame.data[payload_len], ISOTP_PAD_BYTE, in receive_send_fc()
161 frame.dlc = can_bytes_to_dlc(ISOTP_PADDED_FRAME_DL_MIN); in receive_send_fc()
163 frame.dlc = can_bytes_to_dlc(payload_len); in receive_send_fc()
[all …]
/Zephyr-Core-3.5.0/samples/subsys/video/capture/
DREADME.rst11 video capture device, writes a frame count message to the console, and then
12 discards the video frame data.
52 Got frame 743! size: 614400; timestamp 100740 ms
53 Got frame 744! size: 614400; timestamp 100875 ms
54 Got frame 745! size: 614400; timestamp 101010 ms
55 Got frame 746! size: 614400; timestamp 101146 ms
56 Got frame 747! size: 614400; timestamp 101281 ms
57 Got frame 748! size: 614400; timestamp 101416 ms
/Zephyr-Core-3.5.0/modules/canopennode/
DCO_driver.c81 static void canopen_rx_callback(const struct device *dev, struct can_frame *frame, void *user_data) in canopen_rx_callback() argument
98 if (((frame->id ^ buffer->ident) & buffer->mask) == 0U) { in canopen_rx_callback()
99 rxMsg.ident = frame->id; in canopen_rx_callback()
100 rxMsg.DLC = frame->dlc; in canopen_rx_callback()
101 memcpy(rxMsg.data, frame->data, frame->dlc); in canopen_rx_callback()
131 struct can_frame frame; in canopen_tx_retry() local
136 memset(&frame, 0, sizeof(frame)); in canopen_tx_retry()
143 frame.id = buffer->ident; in canopen_tx_retry()
144 frame.dlc = buffer->DLC; in canopen_tx_retry()
145 frame.flags |= (buffer->rtr ? CAN_FRAME_RTR : 0); in canopen_tx_retry()
[all …]
/Zephyr-Core-3.5.0/subsys/net/l2/ieee802154/
Dieee802154_security.c102 static void prepare_cipher_aead_pkt(uint8_t *frame, uint8_t level, uint8_t ll_hdr_len, in prepare_cipher_aead_pkt() argument
115 pkt->in_buf = is_encrypted && payload_len ? frame + ll_hdr_len : NULL; in prepare_cipher_aead_pkt()
122 pkt->out_buf = frame + out_buf_offset; in prepare_cipher_aead_pkt()
125 apkt->ad = is_authenticated ? frame : NULL; in prepare_cipher_aead_pkt()
127 apkt->tag = is_authenticated ? frame + ll_hdr_len + payload_len : NULL; in prepare_cipher_aead_pkt()
131 bool ieee802154_decrypt_auth(struct ieee802154_security_ctx *sec_ctx, uint8_t *frame, in ieee802154_decrypt_auth() argument
152 prepare_cipher_aead_pkt(frame, level, ll_hdr_len, payload_len, authtag_len, &apkt, &pkt); in ieee802154_decrypt_auth()
156 NET_ERR("Cannot decrypt/auth (%i): %p %u/%u - fc %u", ret, frame, ll_hdr_len, in ieee802154_decrypt_auth()
164 bool ieee802154_encrypt_auth(struct ieee802154_security_ctx *sec_ctx, uint8_t *frame, in ieee802154_encrypt_auth() argument
195 prepare_cipher_aead_pkt(frame, level, ll_hdr_len, payload_len, authtag_len, &apkt, &pkt); in ieee802154_encrypt_auth()
[all …]
/Zephyr-Core-3.5.0/doc/services/device_mgmt/
Dsmp_transport.rst38 prefixing each frame with two byte marker and terminating it with newline.
39 Currently MCUmgr imposes a 127 byte limit on frame size, although there
52 frame consists of two byte start marker, body and terminating newline
56 and initial-final; each frame type differs by start marker and/or body
62 Initial frame requires to be followed by optional sequence of partial
63 frames and finally by partial-final frame.
68 Body of initial frame is preceded by two byte total packet length,
71 initial frame is N - 2.
75 frame, here called initial-final; for the description of initial-final
76 frame look below.
[all …]
/Zephyr-Core-3.5.0/samples/drivers/led_ws2812/boards/
Dnucleo_g071rb.overlay16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;
Dnucleo_l476rg.overlay16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;
Dnucleo_h743zi.overlay16 frame-format = <32768>; /* SPI_FRAME_FORMAT_TI */
20 spi-one-frame = <0x70>;
21 spi-zero-frame = <0x40>;
/Zephyr-Core-3.5.0/samples/drivers/can/counter/src/
Dmain.c70 struct can_frame frame; in rx_thread() local
77 k_msgq_get(&counter_msgq, &frame, K_FOREVER); in rx_thread()
79 if (frame.dlc != 2U) { in rx_thread()
80 printf("Wrong data length: %u\n", frame.dlc); in rx_thread()
85 sys_be16_to_cpu(UNALIGNED_GET((uint16_t *)&frame.data))); in rx_thread()
91 struct can_frame frame; in change_led_work_handler() local
94 while (k_msgq_get(&change_led_msgq, &frame, K_NO_WAIT) == 0) { in change_led_work_handler()
96 printf("LED %s\n", frame.data[0] == SET_LED ? "ON" : "OFF"); in change_led_work_handler()
98 gpio_pin_set(led.port, led.pin, frame.data[0] == SET_LED ? 1 : 0); in change_led_work_handler()
/Zephyr-Core-3.5.0/tests/subsys/modem/modem_ppp/src/
Dmain.c208 static void test_modem_ppp_generate_ppp_frame(uint8_t *frame, size_t size) in test_modem_ppp_generate_ppp_frame() argument
218 frame[0] = 0x00; in test_modem_ppp_generate_ppp_frame()
219 frame[1] = 0x21; in test_modem_ppp_generate_ppp_frame()
223 frame[i] = byte; in test_modem_ppp_generate_ppp_frame()
226 fcs = crc16_ccitt(fcs, frame, size) ^ 0xFFFF; in test_modem_ppp_generate_ppp_frame()
228 frame[size - 2] = fcs >> 8; in test_modem_ppp_generate_ppp_frame()
229 frame[size - 1] = fcs; in test_modem_ppp_generate_ppp_frame()
232 static size_t test_modem_ppp_wrap_ppp_frame(uint8_t *wrapped, const uint8_t *frame, size_t size) in test_modem_ppp_wrap_ppp_frame() argument
242 if ((frame[i] == 0x7E) || (frame[i] == 0x7D) || (frame[i] < 0x20)) { in test_modem_ppp_wrap_ppp_frame()
244 wrapped[wrapped_pos + 1] = frame[i] ^ 0x20; in test_modem_ppp_wrap_ppp_frame()
[all …]
/Zephyr-Core-3.5.0/arch/x86/core/
Dfatal.c114 struct stack_frame *frame; in unwind_stack() local
128 frame = (struct stack_frame *)base_ptr; in unwind_stack()
129 if (frame == NULL) { in unwind_stack()
137 if (z_x86_check_stack_bounds((uintptr_t)frame, in unwind_stack()
138 sizeof(*frame), cs)) { in unwind_stack()
139 LOG_ERR(" corrupted? (bp=%p)", frame); in unwind_stack()
144 if (frame->ret_addr == 0U) { in unwind_stack()
148 LOG_ERR(" 0x%016lx", frame->ret_addr); in unwind_stack()
150 LOG_ERR(" 0x%08lx (0x%lx)", frame->ret_addr, frame->args); in unwind_stack()
152 base_ptr = frame->next; in unwind_stack()

123456