Mistake on this page?
Report an issue in GitHub or email us
whd_interface.h
1 /* WHD implementation of NetworkInterfaceAPI
2  * Copyright (c) 2017-2019 ARM Limited
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef WHD_INTERFACE_H
19 #define WHD_INTERFACE_H
20 
21 #include "rtos/Mutex.h"
22 #include "OnboardNetworkStack.h"
23 
24 /** WhdSTAInterface class
25  * Shared information
26  */
27 #define IF_STATUS_ALL_IF_DOWN 0x0
28 #define IF_STATUS_STA_UP 0x1
29 #define IF_STATUS_SOFT_AP_UP 0x2
30 
31 enum whd_default_interface_config
32 {
33  DEFAULT_IF_NOT_SET,
34  DEFAULT_IF_STA,
35  DEFAULT_IF_SOFT_AP
36 };
37 
39  rtos::Mutex mutex;
40  whd_default_interface_config default_if_cfg;
41  uint32_t if_status_flags;
43  OnboardNetworkStack::Interface *iface_softap;
44  whd_interface_shared_info_t() : default_if_cfg(DEFAULT_IF_NOT_SET), if_status_flags(IF_STATUS_ALL_IF_DOWN),
45  iface_sta(NULL), iface_softap(NULL)
46  {}
47 };
48 
49 extern whd_interface_shared_info_t whd_iface_shared;
50 
51 #endif
Representation of a stack's view of an interface.
The Mutex class is used to synchronize the execution of threads.
Definition: Mutex.h:68
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.