Teste Flash

Dependencies:   pulga-lorawan-drv Si1133 BME280

Committer:
ruschigo
Date:
Tue Mar 02 16:57:31 2021 +0000
Revision:
64:ed68ddac6360
Child:
65:4090220e19d2
testing Lora Splited

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ruschigo 64:ed68ddac6360 1 #ifndef _LORA_RADIO_H
ruschigo 64:ed68ddac6360 2 #define _LORA_RADIO_H
ruschigo 64:ed68ddac6360 3 /**
ruschigo 64:ed68ddac6360 4 * Copyright (c) 2017, Arm Limited and affiliates.
ruschigo 64:ed68ddac6360 5 * SPDX-License-Identifier: Apache-2.0
ruschigo 64:ed68ddac6360 6 *
ruschigo 64:ed68ddac6360 7 * Licensed under the Apache License, Version 2.0 (the "License");
ruschigo 64:ed68ddac6360 8 * you may not use this file except in compliance with the License.
ruschigo 64:ed68ddac6360 9 * You may obtain a copy of the License at
ruschigo 64:ed68ddac6360 10 *
ruschigo 64:ed68ddac6360 11 * http://www.apache.org/licenses/LICENSE-2.0
ruschigo 64:ed68ddac6360 12 *
ruschigo 64:ed68ddac6360 13 * Unless required by applicable law or agreed to in writing, software
ruschigo 64:ed68ddac6360 14 * distributed under the License is distributed on an "AS IS" BASIS,
ruschigo 64:ed68ddac6360 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ruschigo 64:ed68ddac6360 16 * See the License for the specific language governing permissions and
ruschigo 64:ed68ddac6360 17 * limitations under the License.
ruschigo 64:ed68ddac6360 18 */
ruschigo 64:ed68ddac6360 19 #include <stdio.h>
ruschigo 64:ed68ddac6360 20 #include "mbed.h"
ruschigo 64:ed68ddac6360 21
ruschigo 64:ed68ddac6360 22 #include "events/EventQueue.h"
ruschigo 64:ed68ddac6360 23
ruschigo 64:ed68ddac6360 24 #include "lorawan/LoRaWANInterface.h"
ruschigo 64:ed68ddac6360 25 #include "lorawan/system/lorawan_data_structures.h"
ruschigo 64:ed68ddac6360 26
ruschigo 64:ed68ddac6360 27
ruschigo 64:ed68ddac6360 28 //#include "lora_radio_helper.h"
ruschigo 64:ed68ddac6360 29
ruschigo 64:ed68ddac6360 30 extern void lorawan_add_callbacks(lorawan_app_callbacks_t LoraWanCallbacks);
ruschigo 64:ed68ddac6360 31
ruschigo 64:ed68ddac6360 32 extern void lora_event_handler(lorawan_event_t event);
ruschigo 64:ed68ddac6360 33
ruschigo 64:ed68ddac6360 34 extern int lorawan_connect(void);
ruschigo 64:ed68ddac6360 35
ruschigo 64:ed68ddac6360 36 extern int lorawan_enable_adaptive_datarate(void);
ruschigo 64:ed68ddac6360 37
ruschigo 64:ed68ddac6360 38 extern int lorawan_set_confirmed_msg_retries(unsigned int number_of_retries);
ruschigo 64:ed68ddac6360 39
ruschigo 64:ed68ddac6360 40
ruschigo 64:ed68ddac6360 41 extern int lorawan_initialize_stack(EventQueue *ev_queue);
ruschigo 64:ed68ddac6360 42
ruschigo 64:ed68ddac6360 43 /**
ruschigo 64:ed68ddac6360 44 * Sends a message to the Network Server
ruschigo 64:ed68ddac6360 45 */
ruschigo 64:ed68ddac6360 46 extern int lora_send_message(uint8_t *msg_to_transmit, uint16_t pkt_len);
ruschigo 64:ed68ddac6360 47
ruschigo 64:ed68ddac6360 48 /**
ruschigo 64:ed68ddac6360 49 * Receive a message from the Network Server
ruschigo 64:ed68ddac6360 50 */
ruschigo 64:ed68ddac6360 51 extern int lora_receive_message();
ruschigo 64:ed68ddac6360 52
ruschigo 64:ed68ddac6360 53 #endif