Home
last modified time | relevance | path

Searched refs:ot (Results 1 – 25 of 747) sorted by relevance

12345678910>>...30

/openthread-latest/src/posix/
Ddaemon.cmake29 add_executable(ot-daemon
33 target_include_directories(ot-daemon PRIVATE ${COMMON_INCLUDES})
35 target_compile_options(ot-daemon PRIVATE
39 target_link_libraries(ot-daemon PRIVATE
48 ot-posix-config
49 ot-config-ftd
50 ot-config
55 target_link_libraries(ot-daemon PRIVATE -Wl,-map,ot-daemon.map)
57 target_link_libraries(ot-daemon PRIVATE -Wl,-Map=ot-daemon.map)
61 add_executable(ot-ctl
[all …]
DREADME.md25 If built successfully, the binary should be found at: `build/posix/src/posix/ot-cli`.
45 ./build/posix/src/posix/ot-cli 'spinel+hdlc+forkpty://build/simulation/examples/apps/ncp/ot-rcp?for…
50 The nRF example platform driver can be found in the [ot-nrf528xx](https://github.com/openthread/ot-…
59 git clone --recursive https://github.com/openthread/ot-nrf528xx.git
62 2. Enter the `ot-nrf528xx` directory:
65 cd ot-nrf528xx
90 This creates an RCP image at `build/bin/ot-rcp`.
95 arm-none-eabi-objcopy -O ihex build/bin/ot-rcp build/bin/ot-rcp.hex
108 --application build/bin/ot-rcp.hex --application-version 1 build/bin/ot-rcp.zip
115 nrfutil dfu usb-serial -pkg build/bin/ot-rcp.zip -p /dev/ttyACM0
[all …]
Dcli.cmake29 add_executable(ot-cli
35 target_include_directories(ot-cli PRIVATE ${COMMON_INCLUDES})
38 target_compile_definitions(ot-cli PRIVATE
42 target_compile_options(ot-cli PRIVATE
46 target_link_libraries(ot-cli PRIVATE
57 ot-config-ftd
58 ot-config
63 target_link_libraries(ot-cli PRIVATE -Wl,-map,ot-cli.map)
65 target_link_libraries(ot-cli PRIVATE -Wl,-Map=ot-cli.map)
69 install(TARGETS ot-cli DESTINATION bin)
/openthread-latest/tests/unit/
DCMakeLists.txt63 add_library(ot-test-platform-ftd
67 add_library(ot-test-platform-rcp
72 target_include_directories(ot-test-platform-ftd
77 target_include_directories(ot-test-platform-rcp
82 target_compile_options(ot-test-platform-ftd
87 target_compile_options(ot-test-platform-rcp
93 target_compile_options(ot-test-platform-rcp
101 target_link_libraries(ot-test-platform-ftd
103 ot-config
107 target_link_libraries(ot-test-platform-rcp
[all …]
Dtest_string.cpp37 namespace ot { namespace
461 static_assert(ot::AreStringsInOrder("a", "b"), "AreStringsInOrder() failed");
462 static_assert(ot::AreStringsInOrder("aa", "aaa"), "AreStringsInOrder() failed");
463 static_assert(ot::AreStringsInOrder("", "a"), "AreStringsInOrder() failed");
464 static_assert(!ot::AreStringsInOrder("cd", "cd"), "AreStringsInOrder() failed");
465 static_assert(!ot::AreStringsInOrder("z", "abcd"), "AreStringsInOrder() failed");
466 static_assert(!ot::AreStringsInOrder("0", ""), "AreStringsInOrder() failed");
473 ot::TestStringWriter(); in main()
474 ot::TestStringLength(); in main()
475 ot::TestUtf8(); in main()
[all …]
Dtest_macros.cpp33 namespace ot { namespace
141 ot::TestMacros(); in main()
142 ot::TestVerifyOrExitSuccessNoAction(); in main()
143 ot::TestVerifyOrExitFailureNoAction(); in main()
144 ot::TestVerifyOrExitSuccessWithAction(); in main()
145 ot::TestVerifyOrExitFailureWithAction(); in main()
/openthread-latest/src/posix/platform/
Dsystem.cpp81 ot::Posix::InfraNetif::Get().HandleBackboneStateChange(instance, aFlags); in processStateChange()
93 ot::Posix::RadioUrl url(aUrls.mUrls[i]); in get802154RadioUrl()
115 ot::Posix::RadioUrl url(aPlatformConfig->mCoprocessorUrls.mUrls[i]); in getTrelRadioUrl()
131 ot::Posix::InfraNetif::Get().SetInfraNetif(aInfraNetifName, aIcmp6Socket); in otSysSetInfraNetif()
148 ot::Posix::InfraNetif::Get().Init(); in platformInitRcpMode()
152 ot::Posix::MdnsSocket::Get().Init(); in platformInitRcpMode()
166 ot::Posix::Udp::Get().Init(otSysGetThreadNetifName()); in platformInitRcpMode()
168 ot::Posix::Udp::Get().Init(aPlatformConfig->mInterfaceName); in platformInitRcpMode()
225 … icmp6Sock = ot::Posix::InfraNetif::CreateIcmp6Socket(aPlatformConfig->mBackboneInterfaceName); in platformSetUp()
233 ot::Posix::InfraNetif::Get().SetUp(); in platformSetUp()
[all …]
Dradio.hpp48 namespace ot { namespace
99 …static constexpr size_t kSpinelInterfaceRawSize = sizeof(ot::Posix::SpiInterface) > sizeof(ot::Pos…
100 ? sizeof(ot::Posix::SpiInterface)
101 : sizeof(ot::Posix::HdlcInterface);
103 static constexpr size_t kSpinelInterfaceRawSize = sizeof(ot::Posix::HdlcInterface);
105 static constexpr size_t kSpinelInterfaceRawSize = sizeof(ot::Posix::SpiInterface);
107 static constexpr size_t kSpinelInterfaceRawSize = sizeof(ot::Posix::VendorInterface);
DCMakeLists.txt31 add_library(ot-posix-config INTERFACE)
35 target_compile_definitions(ot-posix-config
39 # We have to add this definition to `ot-config` because openthread core
49 target_compile_definitions(ot-posix-config
57 target_compile_definitions(ot-posix-config
61 target_compile_definitions(ot-posix-config
68 target_compile_definitions(ot-posix-config
75 target_compile_definitions(ot-posix-config
82 target_compile_definitions(ot-posix-config
89 target_compile_definitions(ot-posix-config
[all …]
/openthread-latest/src/ncp/
Dexample_vendor_hook.cpp37 namespace ot { namespace
130 class NcpVendorUart : public ot::Ncp::NcpHdlc
140 NcpVendorUart(ot::Instance *aInstance) in NcpVendorUart()
141 : ot::Ncp::NcpHdlc(aInstance, &NcpVendorUart::SendHdlc) in NcpVendorUart()
145 NcpVendorUart(ot::Instance **aInstances, uint8_t count) in NcpVendorUart()
146 : ot::Ncp::NcpHdlc(aInstances, count, &NcpVendorUart::SendHdlc) in NcpVendorUart()
159 ot::Instance *instance = static_cast<ot::Instance *>(aInstance); in otAppNcpInit()
163 if (ncpVendor == nullptr || ncpVendor != ot::Ncp::NcpBase::GetNcpInstance()) in otAppNcpInit()
172 ot::Instance *instances[SPINEL_HEADER_IID_MAX]; in otAppNcpInitMulti()
180 instances[i] = static_cast<ot::Instance *>(aInstances[i]); in otAppNcpInitMulti()
[all …]
/openthread-latest/
DREADME.md1ot-logo]][ot-repo] [![Build][ot-gh-action-build-svg]][ot-gh-action-build] [![Simulation][ot-gh-act…
13 …g) and device roles, as well as [Border Router](https://github.com/openthread/ot-br-posix) support.
17 [ot-repo]: https://github.com/openthread/openthread
18 [ot-logo]: https://github.com/openthread/openthread/raw/main/doc/images/openthread_logo.png
19 [ot-gh-action-build]: https://github.com/openthread/openthread/actions?query=workflow%3ABuild+branc…
20 [ot-gh-action-build-svg]: https://github.com/openthread/openthread/workflows/Build/badge.svg?branch…
21 [ot-gh-action-simulation]: https://github.com/openthread/openthread/actions?query=workflow%3ASimula…
22 [ot-gh-action-simulation-svg]: https://github.com/openthread/openthread/workflows/Simulation/badge.…
23 [ot-gh-action-docker]: https://github.com/openthread/openthread/actions?query=workflow%3ADocker+bra…
24 [ot-gh-action-docker-svg]: https://github.com/openthread/openthread/workflows/Docker/badge.svg?bran…
[all …]
D.gitignore32 ot-cli-ftd
33 ot-cli-mtd
34 ot-cli-radio
35 ot-ncp-ftd
36 ot-ncp-mtd
37 ot-rcp
50 ot-test-*
DCMakeLists.txt43 add_library(ot-config INTERFACE)
44 add_library(ot-config-ftd INTERFACE)
45 add_library(ot-config-mtd INTERFACE)
46 add_library(ot-config-radio INTERFACE)
54 target_include_directories(ot-config INTERFACE
64 target_compile_definitions(ot-config INTERFACE "BYTE_ORDER_BIG_ENDIAN=1")
89 target_compile_definitions(ot-config INTERFACE "OPENTHREAD_ENABLE_COVERAGE=1")
90 target_compile_options(ot-config INTERFACE -g -O0 --coverage)
91 target_link_libraries(ot-config INTERFACE --coverage)
102 target_compile_definitions(ot-config INTERFACE "PACKAGE_NAME=\"${OT_PACKAGE_NAME}\"")
[all …]
/openthread-latest/tests/gtest/
DCMakeLists.txt47 add_library(ot-fake-platform
50 target_link_libraries(ot-fake-platform
51 ot-config
54 add_library(ot-fake-ftd INTERFACE)
55 target_link_libraries(ot-fake-ftd INTERFACE
57 ot-fake-platform
60 add_executable(ot-ftd-gtest
63 target_link_libraries(ot-ftd-gtest
64 ot-fake-ftd
67 gtest_discover_tests(ot-ftd-gtest)
[all …]
/openthread-latest/tests/fuzz/
DCMakeLists.txt49 ot-config
52 add_executable(ot-cli-received-fuzzer
57 target_compile_options(ot-cli-received-fuzzer
62 target_include_directories(ot-cli-received-fuzzer
67 target_link_libraries(ot-cli-received-fuzzer
73 add_executable(ot-ip6-send-fuzzer
78 target_compile_options(ot-ip6-send-fuzzer
83 target_include_directories(ot-ip6-send-fuzzer
88 target_link_libraries(ot-ip6-send-fuzzer
93 add_executable(ot-radio-receive-done-fuzzer
[all …]
/openthread-latest/src/ncp/platform/
Ddnssd.cpp39 return ot::Ncp::NcpBase::GetNcpInstance()->DnssdGetState(); in otPlatDnssdGetState()
48 ot::Ncp::NcpBase *ncp = ot::Ncp::NcpBase::GetNcpInstance(); in otPlatDnssdRegisterService()
59 ot::Ncp::NcpBase *ncp = ot::Ncp::NcpBase::GetNcpInstance(); in otPlatDnssdUnregisterService()
70 ot::Ncp::NcpBase *ncp = ot::Ncp::NcpBase::GetNcpInstance(); in otPlatDnssdRegisterHost()
81 ot::Ncp::NcpBase *ncp = ot::Ncp::NcpBase::GetNcpInstance(); in otPlatDnssdUnregisterHost()
92 ot::Ncp::NcpBase *ncp = ot::Ncp::NcpBase::GetNcpInstance(); in otPlatDnssdRegisterKey()
103 ot::Ncp::NcpBase *ncp = ot::Ncp::NcpBase::GetNcpInstance(); in otPlatDnssdUnregisterKey()
/openthread-latest/examples/apps/cli/
Dftd.cmake29 add_executable(ot-cli-ftd
34 target_include_directories(ot-cli-ftd PRIVATE ${COMMON_INCLUDES})
40 target_link_libraries(ot-cli-ftd PRIVATE
47 ot-config-ftd
48 ot-config
53 target_link_libraries(ot-cli-ftd PRIVATE -Wl,-map,ot-cli-ftd.map)
55 target_link_libraries(ot-cli-ftd PRIVATE -Wl,-Map=ot-cli-ftd.map)
59 install(TARGETS ot-cli-ftd
Dmtd.cmake29 add_executable(ot-cli-mtd
34 target_include_directories(ot-cli-mtd PRIVATE ${COMMON_INCLUDES})
40 target_link_libraries(ot-cli-mtd PRIVATE
47 ot-config-mtd
48 ot-config
53 target_link_libraries(ot-cli-mtd PRIVATE -Wl,-map,ot-cli-mtd.map)
55 target_link_libraries(ot-cli-mtd PRIVATE -Wl,-Map=ot-cli-mtd.map)
59 install(TARGETS ot-cli-mtd
Dradio.cmake29 add_executable(ot-cli-radio
34 target_include_directories(ot-cli-radio PRIVATE ${COMMON_INCLUDES})
44 target_link_libraries(ot-cli-radio PRIVATE
51 ot-config-radio
52 ot-config
57 target_link_libraries(ot-cli-radio PRIVATE -Wl,-map,ot-cli-radio.map)
59 target_link_libraries(ot-cli-radio PRIVATE -Wl,-Map=ot-cli-radio.map)
63 install(TARGETS ot-cli-radio
/openthread-latest/examples/apps/ncp/
Dftd.cmake29 add_executable(ot-ncp-ftd
34 target_include_directories(ot-ncp-ftd PRIVATE ${COMMON_INCLUDES})
40 target_link_libraries(ot-ncp-ftd PRIVATE
47 ot-config-ftd
48 ot-config
53 target_link_libraries(ot-ncp-ftd PRIVATE -Wl,-map,ot-ncp-ftd.map)
55 target_link_libraries(ot-ncp-ftd PRIVATE -Wl,-Map=ot-ncp-ftd.map)
59 install(TARGETS ot-ncp-ftd DESTINATION bin)
Dmtd.cmake29 add_executable(ot-ncp-mtd
34 target_include_directories(ot-ncp-mtd PRIVATE ${COMMON_INCLUDES})
40 target_link_libraries(ot-ncp-mtd PRIVATE
47 ot-config-mtd
48 ot-config
53 target_link_libraries(ot-ncp-mtd PRIVATE -Wl,-map,ot-ncp-mtd.map)
55 target_link_libraries(ot-ncp-mtd PRIVATE -Wl,-Map=ot-ncp-mtd.map)
59 install(TARGETS ot-ncp-mtd DESTINATION bin)
Drcp.cmake29 add_executable(ot-rcp
34 target_include_directories(ot-rcp PRIVATE ${COMMON_INCLUDES})
40 target_link_libraries(ot-rcp PRIVATE
46 ot-config-radio
47 ot-config
52 target_link_libraries(ot-rcp PRIVATE -Wl,-map,ot-rcp.map)
54 target_link_libraries(ot-rcp PRIVATE -Wl,-Map=ot-rcp.map)
58 install(TARGETS ot-rcp DESTINATION bin)
/openthread-latest/src/lib/spinel/
DCMakeLists.txt106 ot-lib-config
109 ot-config
114 ot-lib-config
116 ot-config-ftd
117 ot-config
122 ot-lib-config
124 ot-config-radio
125 ot-config
129 add_executable(ot-test-spinel
132 target_compile_definitions(ot-test-spinel
[all …]
/openthread-latest/src/core/coap/
Dcoap_message.hpp52 namespace ot { namespace
159 class Message : public ot::Message
169 typedef ot::Coap::Type Type; ///< CoAP Type.
170 typedef ot::Coap::Code Code; ///< CoAP Code.
884 class ConstIterator : public ot::Message::ConstIterator
887 using ot::Message::ConstIterator::ConstIterator;
889 …const Message &operator*(void) { return static_cast<const Message &>(ot::Message::ConstIterator::o… in operator *()
892 return static_cast<const Message *>(ot::Message::ConstIterator::operator->()); in operator ->()
896 class Iterator : public ot::Message::Iterator
899 using ot::Message::Iterator::Iterator;
[all …]
/openthread-latest/src/core/backbone_router/
Dbackbone_tmf.hpp44 namespace ot { namespace
95 ot::Coap::Message &aMessage,
97 …bool HandleResource(const char *aUriPath, ot::Coap::Message &aMessage, const Ip6::MessageIn…
99 …static Error Filter(const ot::Coap::Message &aMessage, const Ip6::MessageInfo &aMessageInfo, void …

12345678910>>...30