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.
LoRaMacMib.h
00001 /** 00002 / _____) _ | | 00003 ( (____ _____ ____ _| |_ _____ ____| |__ 00004 \____ \| ___ | (_ _) ___ |/ ___) _ \ 00005 _____) ) ____| | | || |_| ____( (___| | | | 00006 (______/|_____)_|_|_| \__)_____)\____)_| |_| 00007 (C)2013 Semtech 00008 ___ _____ _ ___ _ _____ ___ ___ ___ ___ 00009 / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __| 00010 \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _| 00011 |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___| 00012 embedded.connectivity.solutions=============== 00013 00014 Description: LoRaWAN stack layer that controls both MAC and PHY underneath 00015 00016 License: Revised BSD License, see LICENSE.TXT file include in the project 00017 00018 Maintainer: Miguel Luis ( Semtech ), Gregory Cristian ( Semtech ) and Daniel Jaeckle ( STACKFORCE ) 00019 00020 00021 Copyright (c) 2017, Arm Limited and affiliates. 00022 00023 SPDX-License-Identifier: BSD-3-Clause 00024 */ 00025 00026 #ifndef MBED_OS_LORAWAN_MAC_MIB_H_ 00027 #define MBED_OS_LORAWAN_MAC_MIB_H_ 00028 00029 #include "lorawan/system/lorawan_data_structures.h" 00030 #include "lorastack/phy/LoRaPHY.h" 00031 00032 // forward declaration 00033 class LoRaMac; 00034 00035 class LoRaMacMib { 00036 00037 public: 00038 00039 /** Constructor 00040 * 00041 * Sets local handles to NULL. These handles will be set when the subsystem 00042 * is activated by the MAC layer. 00043 */ 00044 LoRaMacMib(); 00045 00046 /** Destructor 00047 * 00048 * Does nothing 00049 */ 00050 ~LoRaMacMib(); 00051 00052 /** Activating MLME subsystem 00053 * 00054 * Stores pointers to MAC and PHY layer handles 00055 * 00056 * @param phy pointer to PHY layer 00057 */ 00058 void activate_mib_subsystem(LoRaPHY *phy); 00059 00060 /** Sets up a MIB Request 00061 * 00062 * Used to configure MAC protocol parameters using appropriate 00063 * key/value pair in the MIB request structure. Use this API to set 00064 * any system wide configurable parameter exposed by MIB service. 00065 * 00066 * @param mibSet [in] pointer to MIB request structure 00067 * @param params pointer to MAC protocol parameters which will be modified 00068 * 00069 * @return LORAWAN_STATUS_OK if everything goes well otherwise 00070 * a negative error code is returned. 00071 */ 00072 lorawan_status_t set_request(loramac_mib_req_confirm_t *mibSet, 00073 loramac_protocol_params *params); 00074 00075 /** Provides access to the given MIB parameter 00076 * 00077 * Used to extract information about system wide MAC protocol parameters 00078 * which are exposed by MIB service. 00079 * 00080 * @param mibGet [out] pointer to MIB request structure which will be filled in 00081 * @param params pointer to MAC protocol parameters 00082 * 00083 * @return LORAWAN_STATUS_OK if everything goes well otherwise 00084 * a negative error code is returned. 00085 */ 00086 lorawan_status_t get_request(loramac_mib_req_confirm_t *mibGet, 00087 loramac_protocol_params *params); 00088 00089 private: 00090 00091 /** 00092 * Pointer PHY handle 00093 */ 00094 LoRaPHY *_lora_phy; 00095 }; 00096 00097 00098 00099 00100 #endif /* MBED_OS_LORAWAN_MAC_MIB_H_ */
Generated on Tue Jul 12 2022 12:21:58 by
1.7.2