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.
MeshInterface.h
00001 00002 /** \addtogroup netsocket */ 00003 /** @{*/ 00004 /* MeshInterface 00005 * Copyright (c) 2015 ARM Limited 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 00020 #ifndef MESH_INTERFACE_H 00021 #define MESH_INTERFACE_H 00022 00023 #include "netsocket/NetworkInterface.h" 00024 00025 00026 /** MeshInterface class 00027 * 00028 * Common interface that is shared between mesh hardware 00029 */ 00030 class MeshInterface : public virtual NetworkInterface 00031 { 00032 public: 00033 00034 virtual MeshInterface *meshInterface() { 00035 return this; 00036 } 00037 00038 /** Get the default Mesh interface. 00039 * 00040 * This is provided as a weak method so applications can override. 00041 * Default behaviour is to get the target's default interface, if 00042 * any. 00043 * 00044 * @return pointer to interface, if any 00045 */ 00046 static MeshInterface *get_default_instance(); 00047 00048 protected: 00049 00050 /** Get the target's default Mesh interface. 00051 * 00052 * This is provided as a weak method so targets can override. The 00053 * default implementation will invoke LoWPANNDInterface or ThreadInterface 00054 * with the default NanostackRfPhy. 00055 * 00056 * @return pointer to interface, if any 00057 */ 00058 static MeshInterface *get_target_default_instance(); 00059 }; 00060 00061 00062 #endif 00063 00064 /** @}*/
Generated on Tue Jul 12 2022 12:45:32 by
