Mistake on this page?
Report an issue in GitHub or email us
mesh_system.h
1 /*
2  * Copyright (c) 2015-2019 ARM Limited. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  * Licensed under the Apache License, Version 2.0 (the License); you may
5  * not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __INCLUDE_MESH_SYSTEM__
18 #define __INCLUDE_MESH_SYSTEM__
19 #include "ns_types.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /*
26  * Event type for connecting
27  */
28 enum {
29  APPL_EVENT_CONNECT = 0x01,
30  APPL_BACKHAUL_INTERFACE_PHY_DOWN,
31  APPL_BACKHAUL_LINK_DOWN,
32  APPL_BACKHAUL_LINK_UP
33 };
34 
35 /*
36  * \brief Send application connect event to receiver tasklet to
37  * ensure that connection is made in right tasklet.
38  */
39 void mesh_system_send_connect_event(uint8_t receiver);
40 
41 int mesh_system_set_file_system_root_path(const char *root_path);
42 
43 /*
44  * \brief Initialize mesh system.
45  * Memory pool, timers, traces and support are initialized.
46  */
47 void mesh_system_init(void);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #include "nanostack-event-loop/eventOS_scheduler.h"
54 
55 #define nanostack_lock() eventOS_scheduler_mutex_wait()
56 #define nanostack_unlock() eventOS_scheduler_mutex_release()
57 #define nanostack_assert_locked() //MBED_ASSERT(eventOS_scheduler_mutex_is_owner())
58 
59 #endif /* __INCLUDE_MESH_SYSTEM__ */
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.