Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libnsdl C027_Support mbed-rtos
mbedEndpointNetworkStubs.h@8:d6c30a9a5ebe, 2015-12-07 (annotated)
- Committer:
- ansond
- Date:
- Mon Dec 07 17:33:01 2015 +0000
- Revision:
- 8:d6c30a9a5ebe
- Parent:
- 0:d2ac2f05a621
updates
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ansond | 0:d2ac2f05a621 | 1 | /** |
| ansond | 0:d2ac2f05a621 | 2 | * @file mbedEndpointNetworkStubs.h |
| ansond | 0:d2ac2f05a621 | 3 | * @brief mbed Endpoint Network Stubs header - these must be implemented in any lower network layer interfacing with mbedConnectorInterface |
| ansond | 0:d2ac2f05a621 | 4 | * @author Doug Anson |
| ansond | 0:d2ac2f05a621 | 5 | * @version 1.0 |
| ansond | 0:d2ac2f05a621 | 6 | * @see |
| ansond | 0:d2ac2f05a621 | 7 | * |
| ansond | 0:d2ac2f05a621 | 8 | * Copyright (c) 2014 |
| ansond | 0:d2ac2f05a621 | 9 | * |
| ansond | 0:d2ac2f05a621 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| ansond | 0:d2ac2f05a621 | 11 | * you may not use this file except in compliance with the License. |
| ansond | 0:d2ac2f05a621 | 12 | * You may obtain a copy of the License at |
| ansond | 0:d2ac2f05a621 | 13 | * |
| ansond | 0:d2ac2f05a621 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
| ansond | 0:d2ac2f05a621 | 15 | * |
| ansond | 0:d2ac2f05a621 | 16 | * Unless required by applicable law or agreed to in writing, software |
| ansond | 0:d2ac2f05a621 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
| ansond | 0:d2ac2f05a621 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ansond | 0:d2ac2f05a621 | 19 | * See the License for the specific language governing permissions and |
| ansond | 0:d2ac2f05a621 | 20 | * limitations under the License. |
| ansond | 0:d2ac2f05a621 | 21 | */ |
| ansond | 0:d2ac2f05a621 | 22 | |
| ansond | 0:d2ac2f05a621 | 23 | #ifndef __MBED_ENDPOINT_NETWORK_STUBS_H__ |
| ansond | 0:d2ac2f05a621 | 24 | #define __MBED_ENDPOINT_NETWORK_STUBS_H__ |
| ansond | 0:d2ac2f05a621 | 25 | |
| ansond | 0:d2ac2f05a621 | 26 | #include "configuration.h" |
| ansond | 0:d2ac2f05a621 | 27 | #include "nsdl_support.h" |
| ansond | 0:d2ac2f05a621 | 28 | |
| ansond | 0:d2ac2f05a621 | 29 | // we have to redefine DBG as its used differently here... |
| ansond | 0:d2ac2f05a621 | 30 | #ifdef DBG |
| ansond | 0:d2ac2f05a621 | 31 | #undef DBG |
| ansond | 0:d2ac2f05a621 | 32 | #endif |
| ansond | 0:d2ac2f05a621 | 33 | #define DBG printf |
| ansond | 0:d2ac2f05a621 | 34 | |
| ansond | 0:d2ac2f05a621 | 35 | // Linkage to the lower network APIs and interfaces |
| ansond | 0:d2ac2f05a621 | 36 | extern "C" void net_stubs_pre_plumb_network(bool canActAsRouterNode); // before endpoint is configured... |
| ansond | 0:d2ac2f05a621 | 37 | extern "C" void net_stubs_post_plumb_network(void); // after endpoint is configured... |
| ansond | 0:d2ac2f05a621 | 38 | extern "C" void net_stubs_create_main_loop(void); |
| ansond | 0:d2ac2f05a621 | 39 | extern "C" void net_stubs_register_endpoint(); |
| ansond | 0:d2ac2f05a621 | 40 | extern "C" void net_stubs_begin_main_loop(void); |
| ansond | 0:d2ac2f05a621 | 41 | |
| ansond | 0:d2ac2f05a621 | 42 | // Utils.cpp functions... |
| ansond | 0:d2ac2f05a621 | 43 | extern void utils_configure_endpoint(void); |
| ansond | 0:d2ac2f05a621 | 44 | extern void utils_init_and_register_endpoint(void); |
| ansond | 0:d2ac2f05a621 | 45 | |
| ansond | 0:d2ac2f05a621 | 46 | #endif // __MBED_ENDPOINT_NETWORK_STUBS_H__ |