ros2_control - rolling
Loading...
Searching...
No Matches
network.hpp
1// Copyright 2026 Open Source Robotics Foundation, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef ZENBEDDED_COMMON__NETWORK_HPP_
16#define ZENBEDDED_COMMON__NETWORK_HPP_
17
18#include <zephyr/net/net_if.h>
19#include <cstddef>
20
21namespace zenbedded::common
22{
23
30int init_wifi(net_if * iface = nullptr);
31
38int init_usbd(net_if * iface = nullptr);
39
48int init_network();
49
55bool is_usbd_ready();
56
63bool is_wifi_ready();
64
76int get_usb_peer_locator(const char * target_locator, char * out_usb_locator, size_t out_len);
77
78} // namespace zenbedded::common
79
80#endif // ZENBEDDED_COMMON__NETWORK_HPP_