Mistake on this page?
Report an issue in GitHub or email us
scl_interface.h
1 /*
2  * Copyright 2018-2020 Cypress Semiconductor Corporation
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 SCL_INTERFACE_H
19 #define SCL_INTERFACE_H
20 
21 #include "rtos/Mutex.h"
22 #include "OnboardNetworkStack.h"
23 
24 
25 /** SclSTAInterface class
26  * Shared information
27  */
28 #define IF_STATUS_ALL_IF_DOWN 0x0
29 #define IF_STATUS_STA_UP 0x1
30 
31 enum scl_default_interface_config
32 {
33  DEFAULT_IF_NOT_SET,
34  DEFAULT_IF_STA,
35 };
36 
38  rtos::Mutex mutex;
39  scl_default_interface_config default_if_cfg;
40  uint32_t if_status_flags;
42  scl_interface_shared_info_t() : default_if_cfg(DEFAULT_IF_NOT_SET), if_status_flags(IF_STATUS_ALL_IF_DOWN),
43  iface_sta(NULL)
44  {}
45 };
46 
47 extern scl_interface_shared_info_t scl_iface_shared;
48 
49 #endif
Representation of a stack's view of an interface.
The Mutex class is used to synchronize the execution of threads.
Definition: Mutex.h:70
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.