Arduino LMIC
6.0.1
Arduino LoRaWAN(r) MAC in C
Toggle main menu visibility
Loading...
Searching...
No Matches
lmic_aes_api.h
Go to the documentation of this file.
1
/*
2
3
Module: lmic_aes_api.h
4
5
Function:
6
The API type
7
8
Copyright & License:
9
See accompanying LICENSE file.
10
11
Author:
12
Terry Moore, MCCI May 2020
13
14
*/
15
17
18
#ifndef _lmic_aes_api_h_
19
#define _lmic_aes_api_h_
20
21
#ifndef _lmic_h_
22
# include "
../lmic/oslmic.h
"
23
#endif
24
25
#ifndef _lmic_aes_interface_h_
26
# include "
lmic_aes_interface.h
"
27
#endif
28
29
LMIC_BEGIN_DECLS
30
31
// linkage to well-known drivers. Only one is used.
32
LMIC_AES_request_t os_aes_original;
33
LMIC_AES_request_t os_aes_generic;
34
35
static
inline
36
u4_t os_aes(u1_t mode, xref2u1_t buf, u2_t len) {
37
#ifdef USE_ORIGINAL_AES
38
return
os_aes_original(mode, buf, len);
39
#else
40
return
os_aes_generic(mode, buf, len);
41
#endif
42
}
43
44
LMIC_END_DECLS
45
46
#endif
// _lmic_aes_api_h_
lmic_aes_interface.h
oslmic.h
src
aes
lmic_aes_api.h
Generated on
for Arduino LMIC by
1.18.0