Arduino LMIC 6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
lmic_aes_api.h
Go to the documentation of this file.
1/*
2
3Module: lmic_aes_api.h
4
5Function:
6 The API type
7
8Copyright & License:
9 See accompanying LICENSE file.
10
11Author:
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
29LMIC_BEGIN_DECLS
30
31// linkage to well-known drivers. Only one is used.
32LMIC_AES_request_t os_aes_original;
33LMIC_AES_request_t os_aes_generic;
34
35static inline
36u4_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
44LMIC_END_DECLS
45
46#endif // _lmic_aes_api_h_