Lines Matching +full:ext +full:- +full:address +full:- +full:match
4 * SPDX-License-Identifier: Apache-2.0
18 #include <platform-zephyr.h>
23 * @brief Tests for the radio.c - OpenThread radio api
111 zassert_equal(otPlatRadioReceiveDone_expected_aframe.mChannel, aFrame->mChannel); in otPlatRadioReceiveDone()
112 zassert_equal(otPlatRadioReceiveDone_expected_aframe.mLength, aFrame->mLength); in otPlatRadioReceiveDone()
113 zassert_mem_equal(otPlatRadioReceiveDone_expected_aframe.mPsdu, aFrame->mPsdu, in otPlatRadioReceiveDone()
114 aFrame->mLength, NULL); in otPlatRadioReceiveDone()
160 const int16_t energy = -94; in ZTEST()
192 const int16_t energy = -94; in ZTEST()
196 scan_mock_fake.return_val = -EBUSY; in ZTEST()
237 const int8_t rssi = -80; in create_ack_frame()
243 buf->len = ACK_PKT_LENGTH; in create_ack_frame()
244 buf->data[0] = FRAME_TYPE_ACK; in create_ack_frame()
261 uint8_t chan2 = chan - 1; in ZTEST()
262 const int8_t power = -3; in ZTEST()
291 frm->mInfo.mTxInfo.mTxDelayBaseTime = 3U; in ZTEST()
292 frm->mInfo.mTxInfo.mTxDelay = 5U; in ZTEST()
295 (frm->mInfo.mTxInfo.mTxDelayBaseTime + frm->mInfo.mTxInfo.mTxDelay) * in ZTEST()
300 frm->mChannel = chan2; in ZTEST()
301 frm->mInfo.mTxInfo.mCsmaCaEnabled = true; in ZTEST()
302 frm->mPsdu[0] = IEEE802154_AR_FLAG_SET; in ZTEST()
322 zassert_equal_ptr(frm->mPsdu, tx_mock_fake.arg3_val->data, NULL); in ZTEST()
336 /* Non-ACKed frame */ in ZTEST()
337 frm->mChannel = --chan2; in ZTEST()
338 frm->mInfo.mTxInfo.mCsmaCaEnabled = false; in ZTEST()
339 frm->mPsdu[0] = 0; in ZTEST()
350 zassert_equal_ptr(frm->mPsdu, tx_mock_fake.arg3_val->data, NULL); in ZTEST()
365 zassert_equal(otPlatRadioSetTransmitPower(ot, -3), OT_ERROR_NONE, in ZTEST()
369 zassert_equal(out_power, -3, "Got different power than set."); in ZTEST()
370 zassert_equal(otPlatRadioSetTransmitPower(ot, -6), OT_ERROR_NONE, in ZTEST()
374 zassert_equal(out_power, -6, "Second call to otPlatRadioSetTransmitPower failed."); in ZTEST()
392 zassert_true(-80 > otPlatRadioGetReceiveSensitivity(ot), "Radio sensitivity not in range."); in ZTEST()
405 config->auto_ack_fpb.mode, NULL); in custom_configure_match_mock()
407 config->auto_ack_fpb.enabled, NULL); in custom_configure_match_mock()
411 config->ack_fpb.extended, NULL); in custom_configure_match_mock()
413 config->ack_fpb.enabled, NULL); in custom_configure_match_mock()
415 zassert_is_null(config->ack_fpb.addr, NULL); in custom_configure_match_mock()
418 config->ack_fpb.addr, in custom_configure_match_mock()
419 (config->ack_fpb.extended) ? sizeof(otExtAddress) : 2, in custom_configure_match_mock()
451 * @brief Test different types of OT source match.
452 * Tests if Enable, Disable, Add and Clear Source Match calls are passed to the
482 "Failed to add ext src entry."); in ZTEST()
492 "Failed to clear ext src entry."); in ZTEST()
508 custom_configure_promiscuous_mock_promiscuous = config->promiscuous; in custom_configure_promiscuous_mock()
606 const int8_t rssi = -103; in ZTEST()
666 custom_filter_mock_ieee_addr = filter->ieee_addr; in custom_filter_mock()
669 custom_filter_mock_short_addr = filter->short_addr; in custom_filter_mock()
672 custom_filter_mock_pan_id = filter->pan_id; in custom_filter_mock()
682 * @brief Test address filtering
683 * Tests if short, extended address and PanID are correctly passed to the radio
736 for (int i = 0; i < buf->size; i++) { in alloc_pkt()
737 buf->data[i] = (offset + i + buf_num) & 0xFF; in alloc_pkt()
740 len = buf->size - 3; in alloc_pkt()
741 buf->len = len; in alloc_pkt()
758 const int8_t power = -5; in ZTEST()
760 const int8_t rssi = -90; in ZTEST()
764 buf = packet->buffer; in ZTEST()
792 otPlatRadioReceiveDone_expected_aframe.mPsdu = buf->data; in ZTEST()
807 const int8_t power = -5; in ZTEST()
812 buf = packet->buffer; in ZTEST()
834 expected_data_ptrs[0] = buf->data; in ZTEST()
835 expected_data_ptrs[1] = buf->frags->data; in ZTEST()
854 buf = packet->buffer; in ZTEST()
861 expected_data_ptrs[0] = buf->data; in ZTEST()
875 buf = packet->buffer; in ZTEST()
883 expected_data_ptrs[0] = buf->data; in ZTEST()
905 custom_configure_csl_rx_time_mock_csl_rx_time = config->expected_rx_time; in custom_configure_csl_rx_time()
918 zassert_equal((sample_time - phr_duration) * NSEC_PER_USEC, in ZTEST()
930 custom_configure_rx_slot_mock_config.rx_slot.channel = config->rx_slot.channel; in custom_configure_csl_rx_slot()
931 custom_configure_rx_slot_mock_config.rx_slot.start = config->rx_slot.start; in custom_configure_csl_rx_slot()
932 custom_configure_rx_slot_mock_config.rx_slot.duration = config->rx_slot.duration; in custom_configure_csl_rx_slot()