/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_utils.h | 148 static inline void ieee802154_radio_filter_short_addr(struct net_if *iface, uint16_t short_addr) in ieee802154_radio_filter_short_addr() argument 157 filter.short_addr = short_addr; in ieee802154_radio_filter_short_addr() 205 static inline void ieee802154_radio_filter_src_short_addr(struct net_if *iface, uint16_t short_addr) in ieee802154_radio_filter_src_short_addr() argument 214 filter.short_addr = short_addr; in ieee802154_radio_filter_src_short_addr() 243 static inline void ieee802154_radio_remove_src_short_addr(struct net_if *iface, uint16_t short_addr) in ieee802154_radio_remove_src_short_addr() argument 252 filter.short_addr = short_addr; in ieee802154_radio_remove_src_short_addr()
|
D | ieee802154_mgmt.c | 57 ctx->scan_ctx->short_addr = in ieee802154_handle_beacon() 58 sys_le16_to_cpu(mpdu->mhr.src_addr->plain.addr.short_addr); in ieee802154_handle_beacon() 128 params.dst.short_addr = IEEE802154_BROADCAST_ADDRESS; in ieee802154_scan() 259 uint16_t short_addr) in set_association() argument 264 __ASSERT_NO_MSG(short_addr != IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED); in set_association() 266 ieee802154_radio_remove_src_short_addr(iface, ctx->short_addr); in set_association() 268 ctx->short_addr = short_addr; in set_association() 270 if (short_addr == IEEE802154_NO_SHORT_ADDRESS_ASSIGNED) { in set_association() 274 short_addr_be = htons(short_addr); in set_association() 277 ieee802154_radio_filter_short_addr(iface, ctx->short_addr); in set_association() [all …]
|
D | ieee802154_shell.c | 112 params.short_addr = (uint16_t) atoi(ext_addr); in cmd_ieee802154_associate() 205 snprintk(buf, buf_len, "(short) %u", params.short_addr); in print_coordinator_address() 510 uint16_t short_addr; /* in CPU byte order */ in cmd_ieee802154_set_short_addr() local 523 short_addr = (uint16_t)atoi(argv[1]); in cmd_ieee802154_set_short_addr() 526 &short_addr, sizeof(uint16_t))) { in cmd_ieee802154_set_short_addr() 528 "Could not set short address %u\n", short_addr); in cmd_ieee802154_set_short_addr() 533 "Short address %u set\n", short_addr); in cmd_ieee802154_set_short_addr() 543 uint16_t short_addr; /* in CPU byte order */ in cmd_ieee802154_get_short_addr() local 552 &short_addr, sizeof(uint16_t))) { in cmd_ieee802154_get_short_addr() 559 "Short address %u\n", short_addr); in cmd_ieee802154_get_short_addr()
|
D | ieee802154_frame.c | 259 if (mhr->dst_addr->plain.addr.short_addr != IEEE802154_BROADCAST_ADDRESS) { in validate_mac_command_cfi_to_mhr() 549 uint16_t short_addr = ntohs(*(uint16_t *)(dst->addr)); in get_dst_addr_mode() local 550 *broadcast = (short_addr == IEEE802154_BROADCAST_ADDRESS); in get_dst_addr_mode() 573 params->dst.short_addr = IEEE802154_BROADCAST_ADDRESS; in data_addr_to_fs_settings() 577 params->dst.short_addr = ntohs(*(uint16_t *)(dst->addr)); in data_addr_to_fs_settings() 586 if (params->short_addr) { in data_addr_to_fs_settings() 610 address_field->plain.addr.short_addr = in generate_addressing_fields() 611 sys_cpu_to_le16(params->dst.short_addr); in generate_addressing_fields() 636 src_addr->short_addr = sys_cpu_to_le16(params->short_addr); in generate_addressing_fields() 692 params.short_addr = ntohs(*(uint16_t *)(src->addr)); in ieee802154_create_data_frame() [all …]
|
D | ieee802154.c | 264 addr->addr = (uint8_t *)(has_pan_id ? &ll->plain.addr.short_addr in swap_and_set_pkt_ll_addr() 265 : &ll->comp.addr.short_addr); in swap_and_set_pkt_ll_addr() 327 if (!(dst_plain->addr.short_addr == IEEE802154_BROADCAST_ADDRESS || in ieee802154_check_dst_addr() 328 dst_plain->addr.short_addr == sys_cpu_to_le16(ctx->short_addr))) { in ieee802154_check_dst_addr() 418 short_dst_addr = fs->fc.pan_id_comp ? dst_addr->comp.addr.short_addr in ieee802154_recv() 419 : dst_addr->plain.addr.short_addr; in ieee802154_recv() 645 ctx->short_addr = IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED; in ieee802154_init()
|
D | ieee802154_frame.h | 108 uint16_t short_addr; member 358 uint16_t short_addr; member 384 uint16_t short_addr; member 456 uint16_t short_addr; /* in CPU byte order */ member 463 uint16_t short_addr; /* in CPU byte order */ member
|
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_shell_test.c | 89 zassert_equal(mpdu->mhr.dst_addr->plain.addr.short_addr, IEEE802154_BROADCAST_ADDRESS, in test_beacon_request() 182 zassert_equal(ctx->short_addr, EXPECTED_ENDDEVICE_SHORT_ADDR, in test_associate_shell_cmd() 296 cmd->assoc_res.short_addr = sys_cpu_to_le16(EXPECTED_ENDDEVICE_SHORT_ADDR); in ZTEST() 329 ctx->short_addr = EXPECTED_ENDDEVICE_SHORT_ADDR; in ZTEST() 341 zassert_equal(ctx->short_addr, IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED, in ZTEST() 384 ctx->short_addr = EXPECTED_COORDINATOR_SHORT_ADDR; in ZTEST() 401 ctx->short_addr = EXPECTED_ENDDEVICE_SHORT_ADDR; in ZTEST() 428 zassert_equal(ctx->short_addr, IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED, in ZTEST() 451 zassert_equal(ctx->short_addr, IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED, in ZTEST() 477 ctx->short_addr = IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED; in reset_fake_driver()
|
D | ieee802154_test.c | 211 if (ctx->short_addr == IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED) { in disassociate() 226 static int associate(struct net_if *iface, struct ieee802154_context *ctx, uint16_t short_addr) in associate() argument 231 if (ctx->short_addr == short_addr) { in associate() 242 ret = net_mgmt(NET_REQUEST_IEEE802154_SET_SHORT_ADDR, iface, &short_addr, in associate() 243 sizeof(short_addr)); in associate() 336 uint16_t saved_short_addr = ctx->short_addr; in set_up_security() 372 uint16_t saved_short_addr = ctx->short_addr; in tear_down_security() 779 uint16_t our_short_addr = ctx->short_addr; /* CPU byte order */ in test_dgram_packet_reception() 843 ctx->short_addr = ntohs(*(uint16_t *)src_ll_addr); in test_dgram_packet_reception() 855 ctx->short_addr = our_short_addr; in test_dgram_packet_reception()
|
D | ieee802154_fake_driver.c | 145 ctx->short_addr = IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED; in fake_iface_init()
|
/Zephyr-latest/samples/net/wpan_serial/src/ |
D | main.c | 482 uint16_t short_addr; in init_ieee802154() local 485 short_addr = (mac_addr[0] << 8) + mac_addr[1]; in init_ieee802154() 486 filter.short_addr = short_addr; in init_ieee802154()
|
/Zephyr-latest/include/zephyr/net/ |
D | ieee802154.h | 286 uint16_t short_addr; member
|
D | ieee802154_radio.h | 599 uint16_t short_addr; member 1265 uint16_t short_addr; member
|
D | ieee802154_mgmt.h | 325 uint16_t short_addr; /**< in CPU byte order */ member
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_uart_pipe.c | 211 static int upipe_set_short_addr(const struct device *dev, uint16_t short_addr) in upipe_set_short_addr() argument 217 sys_put_le16(short_addr, short_addr_le); in upipe_set_short_addr() 247 return upipe_set_short_addr(dev, filter->short_addr); in upipe_filter()
|
D | ieee802154_nrf5.c | 345 static int nrf5_set_short_addr(const struct device *dev, uint16_t short_addr) in nrf5_set_short_addr() argument 351 sys_put_le16(short_addr, short_addr_le); in nrf5_set_short_addr() 354 LOG_DBG("0x%x", short_addr); in nrf5_set_short_addr() 386 return nrf5_set_short_addr(dev, filter->short_addr); in nrf5_filter() 948 if (config->ack_ie.short_addr == IEEE802154_BROADCAST_ADDRESS || in nrf5_configure() 953 sys_put_le16(config->ack_ie.short_addr, short_addr_le); in nrf5_configure() 957 if (config->ack_ie.short_addr != IEEE802154_NO_SHORT_ADDRESS_ASSIGNED) { in nrf5_configure() 981 if (config->ack_ie.short_addr != IEEE802154_NO_SHORT_ADDRESS_ASSIGNED) { in nrf5_configure()
|
D | ieee802154_b91.c | 49 static int b91_set_short_addr(uint16_t short_addr) in b91_set_short_addr() argument 53 sys_put_le16(short_addr, short_addr_le); in b91_set_short_addr() 469 return b91_set_short_addr(filter->short_addr); in b91_filter()
|
D | ieee802154_mcr20a.c | 985 uint16_t short_addr) in mcr20a_set_short_addr() argument 989 short_addr = sys_le16_to_cpu(short_addr); in mcr20a_set_short_addr() 992 if (!write_burst_short_addr(dev, (uint8_t *) &short_addr)) { in mcr20a_set_short_addr() 999 LOG_DBG("0x%x", short_addr); in mcr20a_set_short_addr() 1039 return mcr20a_set_short_addr(dev, filter->short_addr); in mcr20a_filter()
|
D | ieee802154_cc2520.c | 315 uint16_t short_addr) in cc2520_set_short_addr() argument 317 LOG_DBG("0x%x", short_addr); in cc2520_set_short_addr() 319 short_addr = sys_le16_to_cpu(short_addr); in cc2520_set_short_addr() 321 if (!write_mem_short_addr(dev, (uint8_t *) &short_addr)) { in cc2520_set_short_addr() 723 return cc2520_set_short_addr(dev, filter->short_addr); in cc2520_filter()
|
D | ieee802154_cc2520.h | 158 DEFINE_MEM_WRITE(short_addr, CC2520_MEM_SHORT_ADDR, 2)
|
D | ieee802154_kw41z.c | 403 static int kw41z_set_short_addr(const struct device *dev, uint16_t short_addr) in kw41z_set_short_addr() argument 407 ZLL_MACSHORTADDRS0_MACSHORTADDRS0(short_addr); in kw41z_set_short_addr() 439 return kw41z_set_short_addr(dev, filter->short_addr); in kw41z_filter()
|
D | ieee802154_mcr20a.h | 177 DEFINE_BURST_WRITE(short_addr, MCR20A_MACSHORTADDRS0_LSB, 2, false)
|
D | ieee802154_rf2xx.c | 570 uint16_t short_addr) in rf2xx_set_short_addr() argument 575 sys_put_le16(short_addr, short_addr_le); in rf2xx_set_short_addr() 615 return rf2xx_set_short_addr(dev, set, filter->short_addr); in rf2xx_filter()
|
D | ieee802154_dw1000.c | 721 static int dwt_set_short_addr(const struct device *dev, uint16_t short_addr) in dwt_set_short_addr() argument 727 short_addr); in dwt_set_short_addr() 730 LOG_INF("Set short 0x%x %p", short_addr, ctx); in dwt_set_short_addr() 764 return dwt_set_short_addr(dev, filter->short_addr); in dwt_filter()
|
D | ieee802154_cc13xx_cc26xx.c | 262 drv_data->cmd_ieee_rx.localShortAddr = filter->short_addr; in ieee802154_cc13xx_cc26xx_filter()
|
/Zephyr-latest/modules/openthread/platform/ |
D | radio.c | 1389 config.ack_ie.short_addr = aShortAddr; in otPlatRadioEnableCsl() 1462 config.ack_ie.short_addr = aShortAddr; in otPlatRadioEnableCst() 1600 .ack_ie.short_addr = aShortAddress, in otPlatRadioConfigureEnhAckProbing()
|