Lines Matching refs:ot
39 otInstance *ot = (otInstance *)0xAAAA; variable
97 zassert_equal(aInstance, ot, "Incorrect instance."); in otTaskletsSignalPending()
110 zassert_equal(aInstance, ot, "Incorrect instance."); in otPlatRadioReceiveDone()
138 zassert_equal(aInstance, ot, "Incorrect instance."); in otIp6NewMessage()
148 zassert_equal(aInstance, ot, "Incorrect instance."); in otPlatRadioTxStarted()
165 zassert_equal(otPlatRadioEnergyScan(ot, chan, dur), OT_ERROR_NONE, in ZTEST()
176 platformRadioProcess(ot); in ZTEST()
178 zassert_equal_ptr(ot, otPlatRadioEnergyScanDone_fake.arg0_val, NULL); in ZTEST()
198 zassert_equal(otPlatRadioEnergyScan(ot, chan, dur), OT_ERROR_NONE, in ZTEST()
215 platformRadioProcess(ot); in ZTEST()
226 platformRadioProcess(ot); in ZTEST()
228 zassert_equal_ptr(ot, otPlatRadioEnergyScanDone_fake.arg0_val, NULL); in ZTEST()
265 otRadioFrame *frm = otPlatRadioGetTransmitBuffer(ot); in ZTEST()
269 zassert_equal(otPlatRadioSetTransmitPower(ot, power), OT_ERROR_NONE, in ZTEST()
273 zassert_equal(otPlatRadioReceive(ot, chan), OT_ERROR_NONE, "Failed to receive."); in ZTEST()
304 zassert_equal(otPlatRadioTransmit(ot, frm), OT_ERROR_NONE, "Transmit failed."); in ZTEST()
310 platformRadioProcess(ot); in ZTEST()
328 zassert_equal_ptr(ot, otPlatRadioTxDone_fake.arg0_val, NULL); in ZTEST()
342 zassert_equal(otPlatRadioTransmit(ot, frm), OT_ERROR_NONE, "Transmit failed."); in ZTEST()
344 platformRadioProcess(ot); in ZTEST()
352 zassert_equal_ptr(ot, otPlatRadioTxDone_fake.arg0_val, NULL); in ZTEST()
365 zassert_equal(otPlatRadioSetTransmitPower(ot, -3), OT_ERROR_NONE, in ZTEST()
367 zassert_equal(otPlatRadioGetTransmitPower(ot, &out_power), OT_ERROR_NONE, in ZTEST()
370 zassert_equal(otPlatRadioSetTransmitPower(ot, -6), OT_ERROR_NONE, in ZTEST()
372 zassert_equal(otPlatRadioGetTransmitPower(ot, &out_power), OT_ERROR_NONE, in ZTEST()
392 zassert_true(-80 > otPlatRadioGetReceiveSensitivity(ot), "Radio sensitivity not in range."); in ZTEST()
463 otPlatRadioEnableSrcMatch(ot, true); in ZTEST()
466 otPlatRadioEnableSrcMatch(ot, false); in ZTEST()
469 otPlatRadioEnableSrcMatch(ot, true); in ZTEST()
474 zassert_equal(otPlatRadioAddSrcMatchShortEntry(ot, 12345), OT_ERROR_NONE, in ZTEST()
481 zassert_equal(otPlatRadioAddSrcMatchExtEntry(ot, &ext_addr), OT_ERROR_NONE, in ZTEST()
487 zassert_equal(otPlatRadioClearSrcMatchShortEntry(ot, 12345), OT_ERROR_NONE, in ZTEST()
491 zassert_equal(otPlatRadioClearSrcMatchExtEntry(ot, &ext_addr), OT_ERROR_NONE, in ZTEST()
495 otPlatRadioClearSrcMatchShortEntries(ot); in ZTEST()
498 otPlatRadioClearSrcMatchExtEntries(ot); in ZTEST()
519 zassert_false(otPlatRadioGetPromiscuous(ot), in ZTEST()
523 otPlatRadioSetPromiscuous(ot, true); in ZTEST()
524 zassert_true(otPlatRadioGetPromiscuous(ot), "Mode not enabled."); in ZTEST()
531 otPlatRadioSetPromiscuous(ot, false); in ZTEST()
532 zassert_false(otPlatRadioGetPromiscuous(ot), "Mode still enabled."); in ZTEST()
548 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_NONE, in ZTEST()
553 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_NONE, in ZTEST()
558 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_NONE, in ZTEST()
563 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_CSMA_BACKOFF, in ZTEST()
567 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_ENERGY_SCAN, in ZTEST()
571 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_ACK_TIMEOUT, in ZTEST()
575 zassert_equal(otPlatRadioGetCaps(ot), in ZTEST()
581 zassert_equal(otPlatRadioGetCaps(ot), OT_RADIO_CAPS_SLEEP_TO_TX, in ZTEST()
590 otPlatRadioGetCaps(ot), in ZTEST()
611 zassert_equal(otPlatRadioGetRssi(ot), rssi, "Invalid RSSI value received."); in ZTEST()
626 zassert_equal(otPlatRadioSetTransmitPower(ot, power), OT_ERROR_NONE, in ZTEST()
628 zassert_equal(otPlatRadioDisable(ot), OT_ERROR_NONE, "Failed to disable radio."); in ZTEST()
630 zassert_false(otPlatRadioIsEnabled(ot), "Radio reports as enabled."); in ZTEST()
632 zassert_equal(otPlatRadioSleep(ot), OT_ERROR_INVALID_STATE, in ZTEST()
635 zassert_equal(otPlatRadioEnable(ot), OT_ERROR_NONE, "Enabling radio failed."); in ZTEST()
637 zassert_true(otPlatRadioIsEnabled(ot), "Radio reports disabled."); in ZTEST()
639 zassert_equal(otPlatRadioSleep(ot), OT_ERROR_NONE, "Failed to switch to sleep mode."); in ZTEST()
641 zassert_true(otPlatRadioIsEnabled(ot), "Radio reports as disabled."); in ZTEST()
644 zassert_equal(otPlatRadioReceive(ot, channel), OT_ERROR_NONE, "Failed to receive."); in ZTEST()
645 zassert_equal(platformRadioChannelGet(ot), channel, "Channel number not remembered."); in ZTEST()
647 zassert_true(otPlatRadioIsEnabled(ot), "Radio reports as disabled."); in ZTEST()
698 otPlatRadioSetPanId(ot, pan_id); in ZTEST()
707 otPlatRadioSetShortAddress(ot, short_add); in ZTEST()
716 otPlatRadioSetExtendedAddress(ot, &ieee_addr); in ZTEST()
769 zassert_equal(otPlatRadioSetTransmitPower(ot, power), OT_ERROR_NONE, in ZTEST()
773 zassert_equal(otPlatRadioReceive(ot, channel), OT_ERROR_NONE, "Failed to receive."); in ZTEST()
793 platformRadioProcess(ot); in ZTEST()
813 zassert_equal(otPlatRadioSetTransmitPower(ot, power), OT_ERROR_NONE, in ZTEST()
817 zassert_equal(otPlatRadioReceive(ot, channel), OT_ERROR_NONE, "Failed to receive."); in ZTEST()
836 platformRadioProcess(ot); in ZTEST()
845 zassert_equal_ptr(ot, otIp6Send_fake.arg0_val, NULL); in ZTEST()
863 platformRadioProcess(ot); in ZTEST()
887 platformRadioProcess(ot); in ZTEST()
893 zassert_equal_ptr(ot, otIp6Send_fake.arg0_val, NULL); in ZTEST()