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.
Dependents: blinky_max32630fthr
Mesh6LoWPAN_ND.h
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef __MESH6LOWPAN_ND_H__ 00018 #define __MESH6LOWPAN_ND_H__ 00019 00020 #include "AbstractMesh.h" 00021 00022 /** 00023 * \brief 6LoWPAN ND mesh networking class. 00024 */ 00025 00026 class Mesh6LoWPAN_ND : public AbstractMesh 00027 { 00028 00029 public: 00030 00031 virtual ~Mesh6LoWPAN_ND(); 00032 00033 /** 00034 * \brief Read own global IP address 00035 * 00036 * \param address is where the IP address will be copied 00037 * \param len is the length of the address buffer, must be at least 40 bytes 00038 * \return true if address is read successfully, false otherwise 00039 */ 00040 bool getOwnIpAddress(char *address, int8_t len); 00041 00042 /** 00043 * \brief Read border router IP address 00044 * 00045 * \param address is where the IP address will be copied 00046 * \param len is the length of the address buffer, must be at least 40 bytes 00047 * \return true if address is read successfully, false otherwise 00048 */ 00049 bool getRouterIpAddress(char *address, int8_t len); 00050 00051 friend class MeshInterfaceFactory; 00052 00053 private: 00054 /* 00055 * \brief private constructor for the 6LoWPAN_ND 00056 */ 00057 Mesh6LoWPAN_ND(); 00058 00059 /* 00060 * avoid copy/assign object 00061 */ 00062 Mesh6LoWPAN_ND(Mesh6LoWPAN_ND const ©); 00063 Mesh6LoWPAN_ND &operator=(Mesh6LoWPAN_ND const ©); 00064 }; 00065 00066 #endif /* __MESH6LOWPAN_ND_H__ */
Generated on Tue Jul 12 2022 14:21:15 by
1.7.2
