Arduino LMIC
6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
lmic_aes_interface.h
Go to the documentation of this file.
1
/*
2
3
Module: lmic_aes_interface.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_interface_h_
19
#define _lmic_aes_interface_h_
20
21
#ifndef _lmic_env_h_
22
# include "../lmic/lmic_env.h"
23
#endif
24
25
#ifndef _oslmic_types_h_
26
# include "../lmic/oslmic_types.h"
27
#endif
28
29
LMIC_BEGIN_DECLS
30
31
/****************************************************************************\
32
| Things needed for AES
33
\****************************************************************************/
34
35
extern
u4_t AESAUX[];
36
extern
u4_t AESKEY[];
37
#define AESkey ((u1_t*)AESKEY)
38
#define AESaux ((u1_t*)AESAUX)
39
40
#ifndef AES_ENC
// if AES_ENC is defined as macro all other values must be too
41
#define AES_ENC 0x00
42
#define AES_DEC 0x01
43
#define AES_MIC 0x02
44
#define AES_CTR 0x04
45
#define AES_MICNOAUX 0x08
46
#endif
47
48
typedef
49
u4_t LMIC_ABI_STD
50
LMIC_AES_request_t(u1_t mode, xref2u1_t buf, u2_t len);
51
52
64
#define LMIC_AES_DECLARE_DRIVER_FNS(a_driver) \
65
LMIC_AES_request_t LMIC_AES_##a_driver##_request \
66
67
LMIC_END_DECLS
68
69
#endif
// _lmic_aes_interface_h_
src
aes
lmic_aes_interface.h
Generated on
for Arduino LMIC by
1.16.1