Mistake on this page?
Report an issue in GitHub or email us
mesh_system.h
1 /*
2  * Copyright (c) 2015 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 /*
42  * \brief Initialize mesh system.
43  * Memory pool, timers, traces and support are initialized.
44  */
45 void mesh_system_init(void);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #include "nanostack-event-loop/eventOS_scheduler.h"
52 
53 #define nanostack_lock() eventOS_scheduler_mutex_wait()
54 #define nanostack_unlock() eventOS_scheduler_mutex_release()
55 #define nanostack_assert_locked() //MBED_ASSERT(eventOS_scheduler_mutex_is_owner())
56 
57 #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.