Arduino LMIC 6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
oslmic_types.h
1/*
2
3Module: oslmic_types.h
4
5Function:
6 Basic types from oslmic.h, shared by all layers.
7
8Copyright & License:
9 See accompanying LICENSE file.
10
11Author:
12 Terry Moore, MCCI November 2018
13 (based on oslmic.h from IBM).
14
15*/
16
17#ifndef _oslmic_types_h_
18# define _oslmic_types_h_
19
20#include <stdint.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26//================================================================================
27//================================================================================
28// Target platform as C library
29typedef uint8_t bit_t;
30typedef uint8_t u1_t;
31typedef int8_t s1_t;
32typedef uint16_t u2_t;
33typedef int16_t s2_t;
34typedef uint32_t u4_t;
35typedef int32_t s4_t;
36typedef unsigned int uint;
37typedef const char* str_t;
38
39typedef const u1_t* xref2cu1_t;
40typedef u1_t* xref2u1_t;
41
42// the HAL needs to give us ticks, so it ought to know the right type.
43typedef s4_t ostime_t;
44
45#ifdef __cplusplus
46}
47#endif
48
49/* end of oslmic_types.h */
50#endif /* _oslmic_types_h_ */