BA / Mbed OS BaBoRo1
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LoRaMacMcps.cpp Source File

LoRaMacMcps.cpp

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 #include "LoRaMac.h"
00027 #include "lorastack/mac/LoRaMacMcps.h"
00028 
00029 LoRaMacMcps::LoRaMacMcps()
00030 {
00031 }
00032 
00033 LoRaMacMcps::~LoRaMacMcps()
00034 {
00035 }
00036 
00037 void LoRaMacMcps::reset_confirmation()
00038 {
00039     memset((uint8_t*) &confirmation, 0, sizeof(confirmation));
00040 
00041     confirmation.status = LORAMAC_EVENT_INFO_STATUS_ERROR ;
00042 }
00043 
00044 loramac_mcps_confirm_t & LoRaMacMcps::get_confirmation()
00045 {
00046     return confirmation;
00047 }
00048 
00049 loramac_mcps_indication_t & LoRaMacMcps::get_indication()
00050 {
00051     return indication;
00052 }
00053 
00054 void LoRaMacMcps::activate_mcps_subsystem()
00055 {
00056 }
00057