/Zephyr-latest/drivers/stepper/adi_tmc/ |
D | adi_tmc_spi.c | 29 static void print_tx_rx_buffer(const uint8_t *const tx_buffer, const uint8_t *const rx_buffer) in print_tx_rx_buffer() argument 32 LOG_HEXDUMP_DBG(rx_buffer, BUFFER_SIZE, "RX: "); in print_tx_rx_buffer() 39 uint8_t rx_buffer[BUFFER_SIZE]; in tmc_spi_read_register() local 52 .buf = &rx_buffer, in tmc_spi_read_register() 53 .len = sizeof(rx_buffer), in tmc_spi_read_register() 66 print_tx_rx_buffer(tx_buffer, rx_buffer); in tmc_spi_read_register() 67 parse_tmc_spi_status(rx_buffer[0]); in tmc_spi_read_register() 75 *data = ((uint32_t)rx_buffer[1] << 24) + ((uint32_t)rx_buffer[2] << 16) + in tmc_spi_read_register() 76 ((uint32_t)rx_buffer[3] << 8) + (uint32_t)rx_buffer[4]; in tmc_spi_read_register() 78 print_tx_rx_buffer(tx_buffer, rx_buffer); in tmc_spi_read_register() [all …]
|
/Zephyr-latest/samples/drivers/peci/src/ |
D | main.c | 46 packet.rx_buffer.buf = NULL; in peci_ping() 47 packet.rx_buffer.len = PECI_PING_RD_LEN; in peci_ping() 74 packet.rx_buffer.buf = peci_resp_buf; in peci_get_tjmax() 75 packet.rx_buffer.len = PECI_RD_PKG_LEN_DWORD; in peci_get_tjmax() 85 printk("%02x\n", packet.rx_buffer.buf[i]); in peci_get_tjmax() 88 peci_resp = packet.rx_buffer.buf[0]; in peci_get_tjmax() 89 rx_fcs = packet.rx_buffer.buf[PECI_RD_PKG_LEN_DWORD]; in peci_get_tjmax() 95 *tjmax = packet.rx_buffer.buf[3]; in peci_get_tjmax() 111 packet.rx_buffer.buf = peci_resp_buf; in peci_get_temp() 112 packet.rx_buffer.len = PECI_GET_TEMP_RD_LEN; in peci_get_temp() [all …]
|
/Zephyr-latest/tests/kernel/pipe/pipe/src/ |
D | test_pipe.c | 27 ZTEST_BMEM uint8_t rx_buffer[PIPE_SIZE + 1]; variable 184 (void)memset(rx_buffer, 0, sizeof(rx_buffer)); in pipe_get_single() 190 return_value = k_pipe_get(&test_pipe, &rx_buffer, in pipe_get_single() 205 zassert_true(rx_buffer_check(rx_buffer, read) == read, in pipe_get_single() 207 index, read, rx_buffer_check(rx_buffer, read)); in pipe_get_single() 262 (void)memset(rx_buffer, 0, sizeof(rx_buffer)); in pipe_get_multiple() 268 return_value = k_pipe_get(&test_pipe, &rx_buffer, in pipe_get_multiple() 283 zassert_true(rx_buffer_check(rx_buffer, read) == read, in pipe_get_multiple() 285 index, read, rx_buffer_check(rx_buffer, read)); in pipe_get_multiple() 356 return_value = k_pipe_get(&test_pipe, &rx_buffer, in pipe_get_forever_wait() [all …]
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_b91.c | 68 static bool b91_run_filter(uint8_t *rx_buffer) in b91_run_filter() argument 71 if (memcmp(&rx_buffer[B91_PAN_ID_OFFSET], data.filter_pan_id, in b91_run_filter() 73 memcmp(&rx_buffer[B91_PAN_ID_OFFSET], B91_BROADCAST_ADDRESS, in b91_run_filter() 79 switch (rx_buffer[B91_DEST_ADDR_TYPE_OFFSET] & B91_DEST_ADDR_TYPE_MASK) { in b91_run_filter() 83 if (memcmp(&rx_buffer[B91_DEST_ADDR_OFFSET], B91_BROADCAST_ADDRESS, in b91_run_filter() 85 memcmp(&rx_buffer[B91_DEST_ADDR_OFFSET], data.filter_short_addr, in b91_run_filter() 94 memcmp(&rx_buffer[B91_DEST_ADDR_OFFSET], data.filter_ieee_addr, in b91_run_filter() 165 rssi = ((signed char)(data.rx_buffer in b91_update_rssi_and_lqi() 166 [data.rx_buffer[B91_LENGTH_OFFSET] + B91_RSSI_OFFSET])) - 110; in b91_update_rssi_and_lqi() 222 if (net_pkt_write(ack_pkt, data.rx_buffer + B91_PAYLOAD_OFFSET, in b91_handle_ack() [all …]
|
D | ieee802154_uart_pipe.c | 56 static bool received_dest_addr_matched(uint8_t *rx_buffer) in received_dest_addr_matched() argument 61 if (memcmp(&rx_buffer[PAN_ID_OFFSET], in received_dest_addr_matched() 63 memcmp(&rx_buffer[PAN_ID_OFFSET], in received_dest_addr_matched() 69 switch (rx_buffer[DEST_ADDR_TYPE_OFFSET] & DEST_ADDR_TYPE_MASK) { in received_dest_addr_matched() 73 if (memcmp(&rx_buffer[DEST_ADDR_OFFSET], in received_dest_addr_matched() 78 memcmp(&rx_buffer[DEST_ADDR_OFFSET], in received_dest_addr_matched() 89 memcmp(&rx_buffer[DEST_ADDR_OFFSET], in received_dest_addr_matched()
|
D | ieee802154_b91.h | 94 uint8_t rx_buffer[B91_TRX_LENGTH]; member
|
/Zephyr-latest/modules/openthread/platform/ |
D | shell.c | 21 static char rx_buffer[OT_SHELL_BUFFER_SIZE]; variable 44 char *buf_ptr = rx_buffer; in ot_cmd() 78 otCliInputLine(rx_buffer); in ot_cmd()
|
/Zephyr-latest/samples/boards/nordic/nrfx_prs/src/ |
D | main.c | 299 static uint8_t rx_buffer[sizeof(tx_buffer)]; in background_transfer() local 317 .buf = rx_buffer, in background_transfer() 318 .len = sizeof(rx_buffer), in background_transfer() 346 static uint8_t rx_buffer[sizeof(tx_buffer)]; in main() local 397 rx_buffer, in main() 398 sizeof(rx_buffer)) in main() 401 rx_buffer, in main() 402 sizeof(rx_buffer))); in main() 410 buffer_dump(rx_buffer, received); in main()
|
/Zephyr-latest/samples/subsys/canbus/isotp/src/ |
D | main.c | 102 static uint8_t rx_buffer[32]; in rx_0_5_thread() local 114 received_len = isotp_recv(&recv_ctx_0_5, rx_buffer, in rx_0_5_thread() 115 sizeof(rx_buffer)-1U, K_MSEC(2000)); in rx_0_5_thread() 121 rx_buffer[received_len] = '\0'; in rx_0_5_thread() 122 printk("%s", rx_buffer); in rx_0_5_thread()
|
/Zephyr-latest/subsys/ipc/ipc_service/lib/ |
D | icmsg.c | 179 uint8_t rx_buffer[CONFIG_PBUF_RX_READ_BUF_SIZE] __aligned(4); in mbox_callback_process() local 190 __ASSERT_NO_MSG(len <= sizeof(rx_buffer)); in mbox_callback_process() 192 if (sizeof(rx_buffer) < len) { in mbox_callback_process() 196 len = pbuf_read(dev_data->rx_pb, rx_buffer, sizeof(rx_buffer)); in mbox_callback_process() 200 dev_data->cb->received(rx_buffer, len, dev_data->ctx); in mbox_callback_process() 207 memcmp(magic, rx_buffer, sizeof(magic))); in mbox_callback_process()
|
/Zephyr-latest/drivers/spi/ |
D | spi_shell.c | 41 uint8_t rx_buffer[MAX_SPI_BYTES] = {0}; in cmd_spi_transceive() local 56 const struct spi_buf rx_buffers = {.buf = rx_buffer, .len = bytes_to_send}; in cmd_spi_transceive() 72 shell_hexdump(ctx, rx_buffer, bytes_to_send); in cmd_spi_transceive()
|
D | spi_nrfx_spim.c | 64 uint8_t *rx_buffer; member 442 rx_buf = dev_data->rx_buffer; in transfer_next_chunk() 505 sys_cache_data_invd_range(dev_data->rx_buffer, dev_data->chunk_len); in event_handler() 509 dev_data->rx_buffer, in event_handler() 803 .rx_buffer = spim_##idx##_rx_buffer,)) \
|
/Zephyr-latest/tests/drivers/uart/uart_errors/src/ |
D | main.c | 41 static uint8_t rx_buffer[256]; variable 89 memcpy(&rx_buffer[rx_buffer_cnt], &evt->data.rx.buf[evt->data.rx.offset], in dut_async_callback() 140 size_t rem = sizeof(rx_buffer) - rx_buffer_cnt; in dut_int_callback() 141 int len = uart_fifo_read(dev, &rx_buffer[rx_buffer_cnt], rem); in dut_int_callback() 353 zassert_equal(memcmp(buf, rx_buffer, rx_buffer_cnt), 0); in test_detect_error() 373 LOG_HEXDUMP_INF(rx_buffer, rx_buffer_cnt, "Received data:"); in test_detect_error() 376 zassert_equal(memcmp(buf, &rx_buffer[rx_buffer_cnt - sizeof(buf)], sizeof(buf)), 0); in test_detect_error()
|
/Zephyr-latest/drivers/serial/ |
D | uart_nrfx_uart.c | 53 uint8_t *rx_buffer; member 481 uart0_cb.rx_buffer = buf; in uart_nrfx_rx_enable() 540 event.data.rx.buf = uart0_cb.rx_buffer; in rx_rdy_evt() 553 .data.rx_buf.buf = uart0_cb.rx_buffer in buf_released_evt() 594 uart0_cb.rx_buffer[uart0_cb.rx_counter] = in rx_isr() 624 uart0_cb.rx_buffer = uart0_cb.rx_secondary_buffer; in rx_isr() 702 .data.rx_stop.data.buf = uart0_cb.rx_buffer in error_isr() 726 uart0_cb.rx_buffer = uart0_cb.rx_secondary_buffer; in rxto_isr()
|
D | uart_renesas_ra8_sci_b.c | 54 uint8_t *rx_buffer; member 449 .data.rx_stop.data.buf = (uint8_t *)data->rx_buffer, in async_rx_error() 482 .data.rx.buf = (uint8_t *)data->rx_buffer, in async_rx_ready() 497 data->rx_buffer = data->rx_next_buffer; in async_replace_rx_buffer() 500 R_SCI_B_UART_Read(&data->sci, data->rx_buffer, data->rx_buffer_cap); in async_replace_rx_buffer() 514 if (data->rx_buffer == NULL) { in async_release_rx_buffer() 520 .data.rx.buf = (uint8_t *)data->rx_buffer, in async_release_rx_buffer() 524 data->rx_buffer = NULL; in async_release_rx_buffer() 713 if (data->rx_buffer) { in uart_ra_sci_b_async_rx_enable() 724 data->rx_buffer = buf; in uart_ra_sci_b_async_rx_enable()
|
D | uart_renesas_ra_sci.c | 61 uint8_t *rx_buffer; member 595 .data.rx.buf = (uint8_t *)data->rx_buffer, in async_rx_release_buf() 598 data->rx_buffer = NULL; in async_rx_release_buf() 655 .data.rx.buf = (uint8_t *)data->rx_buffer, in async_rx_ready() 735 if (data->rx_buffer) { in uart_ra_sci_async_rx_enable() 755 data->rx_buffer = buf; in uart_ra_sci_async_rx_enable() 786 if (!data->rx_buffer) { in uart_ra_sci_async_rx_disable() 832 data->rx_buffer = data->rx_next_buf; in async_evt_rx_complete() 836 R_SCI_UART_Read(&data->sci, data->rx_buffer, data->rx_buf_cap); in async_evt_rx_complete()
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 24 static uint8_t rx_buffer[APP_MQTT_BUFFER_SIZE]; variable 174 client->rx_buf = rx_buffer; in client_init() 175 client->rx_buf_size = sizeof(rx_buffer); in client_init()
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | mqtt_client.c | 20 static uint8_t rx_buffer[CONFIG_NET_SAMPLE_MQTT_PAYLOAD_SIZE]; variable 480 client->rx_buf = rx_buffer; in app_mqtt_init() 481 client->rx_buf_size = sizeof(rx_buffer); in app_mqtt_init()
|
/Zephyr-latest/tests/drivers/uart/uart_emul/src/ |
D | bus.c | 331 uint8_t rx_buffer[16]; in ZTEST_F() local 337 uart_rx_enable(fixture->dev, rx_buffer, sizeof(rx_buffer), 100 * USEC_PER_MSEC), 0); in ZTEST_F()
|
/Zephyr-latest/samples/net/mqtt_publisher/src/ |
D | main.c | 33 static APP_BMEM uint8_t rx_buffer[APP_MQTT_BUFFER_SIZE]; variable 314 client->rx_buf = rx_buffer; in client_init() 315 client->rx_buf_size = sizeof(rx_buffer); in client_init()
|
/Zephyr-latest/drivers/peci/ |
D | peci_mchp_xec.c | 247 struct peci_buf *rx_buf = &msg->rx_buffer; in peci_xec_write() 321 struct peci_buf *rx_buf = &msg->rx_buffer; in peci_xec_read() 396 if (msg->rx_buffer.len || (msg->cmd_code == PECI_CMD_PING)) { in peci_xec_transfer()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | mqtt.rst | 40 static uint8_t rx_buffer[256]; 89 client_ctx.rx_buf = rx_buffer; 90 client_ctx.rx_buf_size = sizeof(rx_buffer);
|
/Zephyr-latest/include/zephyr/drivers/ |
D | peci.h | 237 struct peci_buf rx_buffer; member
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/ |
D | main.c | 42 static uint8_t rx_buffer[MQTT_BUFFER_SIZE]; variable 256 client_ctx.rx_buf = rx_buffer; in aws_client_setup()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_smsc91x.c | 82 static uint8_t rx_buffer[NET_ETH_MAX_FRAME_SIZE]; variable 435 smsc_read_multi_2(sc, DATA0, (uint16_t *)rx_buffer, len / 2); in smsc_recv_pkt() 437 rx_buffer[len - 1] = smsc_read_1(sc, DATA0); in smsc_recv_pkt() 447 ret = net_pkt_write(pkt, rx_buffer, len); in smsc_recv_pkt()
|