Home
last modified time | relevance | path

Searched refs:ext_addr (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_shell_test.c283 sys_memcpy_swap(params.dst.ext_addr, ctx->ext_addr, sizeof(params.dst.ext_addr)); in ZTEST()
286 memcpy(ctx->ext_addr, coord_addr_le, sizeof(ctx->ext_addr)); in ZTEST()
308 sys_memcpy_swap(ctx->ext_addr, params.dst.ext_addr, sizeof(ctx->ext_addr)); in ZTEST()
314 sys_memcpy_swap(ctx->ext_addr, params.dst.ext_addr, sizeof(ctx->ext_addr)); in ZTEST()
344 zassert_mem_equal(ctx->ext_addr, mock_ext_addr_le, sizeof(ctx->ext_addr), in ZTEST()
379 sys_memcpy_swap(params.dst.ext_addr, ctx->ext_addr, sizeof(params.dst.ext_addr)); in ZTEST()
385 memcpy(ctx->ext_addr, expected_coord_addr_le, sizeof(ctx->ext_addr)); in ZTEST()
402 sys_memcpy_swap(ctx->ext_addr, params.dst.ext_addr, sizeof(ctx->ext_addr)); in ZTEST()
431 zassert_mem_equal(ctx->ext_addr, mock_ext_addr_le, sizeof(ctx->ext_addr), in ZTEST()
437 sys_memcpy_swap(ctx->ext_addr, params.dst.ext_addr, sizeof(ctx->ext_addr)); in ZTEST()
[all …]
Dieee802154_test.c793 sys_memcpy_swap(our_ext_addr, ctx->ext_addr, sizeof(our_ext_addr)); in test_dgram_packet_reception()
814 pkt->lladdr_dst.len = is_broadcast ? 0 : sizeof(ctx->ext_addr); in test_dgram_packet_reception()
845 sys_memcpy_swap(ctx->ext_addr, src_ll_addr, sizeof(ctx->ext_addr)); in test_dgram_packet_reception()
857 sys_memcpy_swap(ctx->ext_addr, our_ext_addr, sizeof(ctx->ext_addr)); in test_dgram_packet_reception()
1149 sys_memcpy_swap(mac_be, ctx->ext_addr, IEEE802154_EXT_ADDR_LENGTH); in test_recv_and_send_ack_reply()
/Zephyr-latest/samples/bluetooth/extended_adv/scanner/src/
Dmain.c15 bt_addr_le_t ext_addr; variable
86 memcpy(&ext_addr, info->addr, sizeof(ext_addr)); in scan_recv()
106 err = bt_conn_le_create(&ext_addr, BT_CONN_LE_CREATE_CONN, in attempt_connection()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_shell.c73 static inline int parse_extended_address(char *addr, uint8_t *ext_addr) in parse_extended_address() argument
75 return net_bytes_from_str(ext_addr, IEEE802154_EXT_ADDR_LENGTH, addr); in parse_extended_address()
82 char ext_addr[EXT_ADDR_STR_SIZE] = {0}; in cmd_ieee802154_associate() local
102 strncpy(ext_addr, argv[2], EXT_ADDR_STR_LEN); in cmd_ieee802154_associate()
104 if (strlen(ext_addr) == EXT_ADDR_STR_LEN) { in cmd_ieee802154_associate()
105 if (parse_extended_address(ext_addr, params.addr) < 0) { in cmd_ieee802154_associate()
112 params.short_addr = (uint16_t) atoi(ext_addr); in cmd_ieee802154_associate()
488 static char ext_addr[EXT_ADDR_STR_SIZE]; in cmd_ieee802154_get_ext_addr() local
492 pos += snprintk(ext_addr + pos, in cmd_ieee802154_get_ext_addr()
497 ext_addr[EXT_ADDR_STR_SIZE - 1] = '\0'; in cmd_ieee802154_get_ext_addr()
[all …]
Dieee802154_mgmt.c62 mpdu->mhr.src_addr->plain.addr.ext_addr, in ieee802154_handle_beacon()
252 sys_memcpy_swap(ctx->linkaddr.addr, ctx->ext_addr, IEEE802154_EXT_ADDR_LENGTH); in set_linkaddr_to_ext_addr()
368 memcpy(ctx->coord_ext_addr, mpdu->mhr.src_addr->comp.addr.ext_addr, in ieee802154_handle_mac_command()
422 mpdu->mhr.src_addr->comp.addr.ext_addr, in ieee802154_handle_mac_command()
482 memcpy(params.dst.ext_addr, req->addr, sizeof(params.dst.ext_addr)); in ieee802154_associate()
670 sys_memcpy_swap(params.dst.ext_addr, ctx->coord_ext_addr, in ieee802154_disassociate()
671 sizeof(params.dst.ext_addr)); in ieee802154_disassociate()
797 if (memcmp(ctx->ext_addr, ext_addr_le, IEEE802154_EXT_ADDR_LENGTH)) { in ieee802154_set_parameters()
798 memcpy(ctx->ext_addr, ext_addr_le, IEEE802154_EXT_ADDR_LENGTH); in ieee802154_set_parameters()
804 ieee802154_radio_filter_ieee_addr(iface, ctx->ext_addr); in ieee802154_set_parameters()
[all …]
Dieee802154.c259 addr->addr = has_pan_id ? ll->plain.addr.ext_addr : ll->comp.addr.ext_addr; in swap_and_set_pkt_ll_addr()
337 if (memcmp(dst_plain->addr.ext_addr, ctx->ext_addr, in ieee802154_check_dst_addr()
647 sys_memcpy_swap(ctx->ext_addr, eui64_be, IEEE802154_EXT_ADDR_LENGTH); in ieee802154_init()
673 sys_memcpy_swap(ctx->ext_addr, eui64_be, IEEE802154_EXT_ADDR_LENGTH); in ieee802154_init()
674 ieee802154_radio_filter_ieee_addr(iface, ctx->ext_addr); in ieee802154_init()
Dieee802154_frame.c581 memcpy(params->dst.ext_addr, dst->addr, sizeof(params->dst.ext_addr)); in data_addr_to_fs_settings()
614 sys_memcpy_swap(address_field->plain.addr.ext_addr, params->dst.ext_addr, in generate_addressing_fields()
639 memcpy(src_addr->ext_addr, ctx->ext_addr, IEEE802154_EXT_ADDR_LENGTH); in generate_addressing_fields()
704 if (memcmp(ctx->ext_addr, ext_addr_le, src->len)) { in ieee802154_create_data_frame()
744 payload_len, authtag_len, ctx->ext_addr)) { in ieee802154_create_data_frame()
981 authtag_len, src->ext_addr, in ieee802154_decipher_data_frame()
Dieee802154_frame.h109 uint8_t ext_addr[0]; member
455 uint8_t ext_addr[IEEE802154_EXT_ADDR_LENGTH]; /* in big endian */ member
/Zephyr-latest/tests/subsys/openthread/
Dradio_test.c458 otExtAddress ext_addr; in ZTEST() local
472 sys_put_le16(12345, ext_addr.m8); in ZTEST()
473 set_expected_match_values(IEEE802154_CONFIG_ACK_FPB, ext_addr.m8, false, true); in ZTEST()
477 for (int i = 0; i < sizeof(ext_addr.m8); i++) { in ZTEST()
478 ext_addr.m8[i] = i; in ZTEST()
480 set_expected_match_values(IEEE802154_CONFIG_ACK_FPB, ext_addr.m8, true, true); in ZTEST()
481 zassert_equal(otPlatRadioAddSrcMatchExtEntry(ot, &ext_addr), OT_ERROR_NONE, in ZTEST()
485 sys_put_le16(12345, ext_addr.m8); in ZTEST()
486 set_expected_match_values(IEEE802154_CONFIG_ACK_FPB, ext_addr.m8, false, false); in ZTEST()
490 set_expected_match_values(IEEE802154_CONFIG_ACK_FPB, ext_addr.m8, true, false); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/net/
Dieee802154.h296 uint8_t ext_addr[IEEE802154_MAX_ADDR_LENGTH]; member
Dieee802154_radio.h1254 const uint8_t *ext_addr; member
/Zephyr-latest/include/zephyr/canbus/
Disotp.h181 uint8_t ext_addr; member
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c147 *data++ = rctx->tx_addr.ext_addr; in receive_send_fc()
389 if (frame->data[index++] != rctx->rx_addr.ext_addr) { in process_ff_sf()
492 if (frame->data[index++] != rctx->rx_addr.ext_addr) { in process_cf()
796 if (sctx->rx_addr.ext_addr != *data++) { in send_process_fc()
909 frame.data[index++] = sctx->tx_addr.ext_addr; in send_sf()
959 frame.data[index++] = sctx->tx_addr.ext_addr; in send_ff()
998 frame.data[index++] = sctx->tx_addr.ext_addr; in send_cf()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc2520.h160 DEFINE_MEM_WRITE(ext_addr, CC2520_MEM_EXT_ADDR, 8)
Dieee802154_mcr20a.h178 DEFINE_BURST_WRITE(ext_addr, MCR20A_MACLONGADDRS0_0, 8, false)
Dieee802154_nrf5.c949 config->ack_ie.ext_addr == NULL) { in nrf5_configure()
954 sys_memcpy_swap(ext_addr_le, config->ack_ie.ext_addr, EXTENDED_ADDRESS_SIZE); in nrf5_configure()
/Zephyr-latest/modules/openthread/platform/
Dradio.c1390 config.ack_ie.ext_addr = aExtAddr != NULL ? aExtAddr->m8 : NULL; in otPlatRadioEnableCsl()
1463 config.ack_ie.ext_addr = aExtAddr != NULL ? aExtAddr->m8 : NULL; in otPlatRadioEnableCst()
1601 .ack_ie.ext_addr = aExtAddress->m8, in otPlatRadioConfigureEnhAckProbing()
/Zephyr-latest/tests/subsys/canbus/isotp/conformance/src/
Dmain.c110 .ext_addr = EXT_ADDR,
121 .ext_addr = EXT_ADDR,
352 frame->data[0] = rx_addr_ext.ext_addr; in prepare_sf_ext_frame()