loramac_utils.h
889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) 2020 INRIA
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup pkg_semtech_loramac
* @{
*
* @file
* @brief Utility functions for Semtech LoRaMac library.
*
* @author Didier Donsez <didier.donsez@univ-grenoble-alpes.fr>
*
* @}
*/
#ifndef LORAMAC_UTILS_H
#define LORAMAC_UTILS_H
#include <inttypes.h>
#ifdef __cplusplus
extern "C"
{
#endif
char *semtech_loramac_err_message(uint8_t errCode);
uint8_t loramac_join_retry_loop(semtech_loramac_t *loramac, uint8_t initDataRate, uint32_t nextRetryTime, uint32_t maxNextRetryTime);
void loramac_forge_deveui(uint8_t *deveui, uint8_t *appeui, uint8_t *appkey, const uint8_t* secret);
void printf_ba(const uint8_t* ba, size_t len);
#endif