-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlorax_radio.h
79 lines (53 loc) · 2.45 KB
/
lorax_radio.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/********************************************************************
* Copyright (C) 2016 Microchip Technology Inc. and its subsidiaries
* (Microchip). All rights reserved.
*
* You are permitted to use the software and its derivatives with Microchip
* products. See the license agreement accompanying this software, if any, for
* more info about your rights and obligations.
*
* SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
* MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR
* PURPOSE. IN NO EVENT SHALL MICROCHIP, SMSC, OR ITS LICENSORS BE LIABLE OR
* OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH
* OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY FOR ANY DIRECT OR INDIRECT
* DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES, OR OTHER SIMILAR COSTS. To the fullest
* extend allowed by law, Microchip and its licensors liability will not exceed
* the amount of fees, if any, that you paid directly to Microchip to use this
* software.
*************************************************************************
*
* lorawan_radio.h
*
* LoRaWAN to RADIO header file
*
******************************************************************************/
#ifndef _LORAX_RADIO_H
#define _LORAX_RADIO_H
#ifdef __cplusplus
extern "C" {
#endif
/****************************** INCLUDES **************************************/
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <xc.h>
#include "lorawan.h"
/****************************** DEFINES ***************************************/
/***************************** TYPEDEFS ***************************************/
/*************************** FUNCTIONS PROTOTYPE ******************************/
void LORAX_TxDone (uint16_t timeOnAir, uint8_t was_timeout);
LorawanError_t LORAX_RxDone (uint8_t *buffer, uint8_t bufferLength);
void LORAX_RxTimeout (void);
void LORAWAN_TxDone (uint16_t timeOnAir);
LorawanError_t LORAWAN_RxDone (uint8_t *buffer, uint8_t bufferLength);
LorawanError_t LORAWAN_NSRxDone (uint8_t *buffer, uint8_t bufferLength);
void LORAWAN_RxTimeout (void);
#ifdef __cplusplus
}
#endif
#endif /* _LORAX_RADIO_H */