Teste Flash

Dependencies:   pulga-lorawan-drv Si1133 BME280

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lora_radio.h Source File

lora_radio.h

00001 #ifndef _LORA_RADIO_H
00002 #define _LORA_RADIO_H
00003 /**
00004  * Copyright (c) 2017, Arm Limited and affiliates.
00005  * SPDX-License-Identifier: Apache-2.0
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 #include <stdio.h>
00020 #include "mbed.h"
00021 
00022 #include "events/EventQueue.h"
00023 
00024 #include "lorawan/LoRaWANInterface.h"
00025 #include "lorawan/system/lorawan_data_structures.h"
00026 
00027 #include "serial.h"
00028 
00029 //#include "lora_radio_helper.h"
00030 
00031 extern void lorawan_add_callbacks(lorawan_app_callbacks_t LoraWanCallbacks);
00032 
00033 extern void lora_event_handler(lorawan_event_t event);
00034 
00035 extern int lorawan_connect(void);
00036 
00037 extern int lorawan_enable_adaptive_datarate(void);
00038 
00039 extern int lorawan_set_confirmed_msg_retries(unsigned int number_of_retries);
00040     
00041 
00042 extern int lorawan_initialize_stack(EventQueue *ev_queue);
00043 
00044 /**
00045  * Sends a message to the Network Server
00046  */
00047 extern int lora_send_message(uint8_t *msg_to_transmit, uint16_t pkt_len);
00048 
00049 /**
00050  * Receive a message from the Network Server
00051  */
00052 extern int lora_receive_message();
00053 
00054 #endif