|
nros platform-cffi
Canonical C ABI for porting the nros platform abstraction
|
Zephyr-specific platform primitives (RMW-independent). More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
| int32_t | nros_platform_zephyr_wait_network (int timeout_ms) |
| Block until the default Zephyr network interface is operational. | |
Zephyr-specific platform primitives (RMW-independent).
These belong to the platform layer, not any RMW. Phase 200.1 relocated the network-wait helper here from the zenoh-pico support crate (zpico-zephyr, where it was historically mis-filed as zpico_zephyr_wait_network only because zenoh was the first Zephyr backend) — so every RMW build (zenoh / XRCE / CycloneDDS) gets one canonical copy.
| int32_t nros_platform_zephyr_wait_network | ( | int | timeout_ms | ) |
Block until the default Zephyr network interface is operational.
Polls for the post-condition DDS / zenoh-pico actually need: iface admin-up + carrier ok + at least one preferred IPv4 address bound (also accepts the NET_EVENT_L4_CONNECTED sem for boards with a managed PHY). Under NSOS (native_sim offloaded sockets) returns immediately — host kernel networking.
| timeout_ms | Max wait in ms (negative = wait forever). |