![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Updated the code with Class C Lorawan
Dependencies: mbed LoRaWAN-lib
radio/SX1276Lib/typedefs/typedefs.h@12:813e9e5f5ff6, 2019-03-22 (annotated)
- Committer:
- amirchaudhary
- Date:
- Fri Mar 22 16:24:25 2019 +0000
- Revision:
- 12:813e9e5f5ff6
Updated the code to Class C Lorawan.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
amirchaudhary | 12:813e9e5f5ff6 | 1 | /* |
amirchaudhary | 12:813e9e5f5ff6 | 2 | / _____) _ | | |
amirchaudhary | 12:813e9e5f5ff6 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
amirchaudhary | 12:813e9e5f5ff6 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
amirchaudhary | 12:813e9e5f5ff6 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
amirchaudhary | 12:813e9e5f5ff6 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
amirchaudhary | 12:813e9e5f5ff6 | 7 | (C) 2014 Semtech |
amirchaudhary | 12:813e9e5f5ff6 | 8 | |
amirchaudhary | 12:813e9e5f5ff6 | 9 | Description: - |
amirchaudhary | 12:813e9e5f5ff6 | 10 | |
amirchaudhary | 12:813e9e5f5ff6 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
amirchaudhary | 12:813e9e5f5ff6 | 12 | |
amirchaudhary | 12:813e9e5f5ff6 | 13 | Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin |
amirchaudhary | 12:813e9e5f5ff6 | 14 | */ |
amirchaudhary | 12:813e9e5f5ff6 | 15 | #ifndef __TYPEDEFS_H__ |
amirchaudhary | 12:813e9e5f5ff6 | 16 | #define __TYPEDEFS_H__ |
amirchaudhary | 12:813e9e5f5ff6 | 17 | |
amirchaudhary | 12:813e9e5f5ff6 | 18 | #include "mbed.h" |
amirchaudhary | 12:813e9e5f5ff6 | 19 | #include "./enums/enums.h" |
amirchaudhary | 12:813e9e5f5ff6 | 20 | |
amirchaudhary | 12:813e9e5f5ff6 | 21 | class SX1276; |
amirchaudhary | 12:813e9e5f5ff6 | 22 | class SX1276MB1xAS; |
amirchaudhary | 12:813e9e5f5ff6 | 23 | /*! |
amirchaudhary | 12:813e9e5f5ff6 | 24 | * Hardware IO IRQ callback function definition |
amirchaudhary | 12:813e9e5f5ff6 | 25 | */ |
amirchaudhary | 12:813e9e5f5ff6 | 26 | typedef void ( SX1276::*DioIrqHandler )( void ); |
amirchaudhary | 12:813e9e5f5ff6 | 27 | |
amirchaudhary | 12:813e9e5f5ff6 | 28 | /*! |
amirchaudhary | 12:813e9e5f5ff6 | 29 | * triggers definition |
amirchaudhary | 12:813e9e5f5ff6 | 30 | */ |
amirchaudhary | 12:813e9e5f5ff6 | 31 | typedef void ( SX1276::*Trigger )( void ); |
amirchaudhary | 12:813e9e5f5ff6 | 32 | typedef void ( SX1276MB1xAS::*TriggerMB1xAS )( void ); |
amirchaudhary | 12:813e9e5f5ff6 | 33 | |
amirchaudhary | 12:813e9e5f5ff6 | 34 | /*! |
amirchaudhary | 12:813e9e5f5ff6 | 35 | * FSK bandwidth definition |
amirchaudhary | 12:813e9e5f5ff6 | 36 | */ |
amirchaudhary | 12:813e9e5f5ff6 | 37 | typedef struct |
amirchaudhary | 12:813e9e5f5ff6 | 38 | { |
amirchaudhary | 12:813e9e5f5ff6 | 39 | uint32_t bandwidth; |
amirchaudhary | 12:813e9e5f5ff6 | 40 | uint8_t RegValue; |
amirchaudhary | 12:813e9e5f5ff6 | 41 | }FskBandwidth_t; |
amirchaudhary | 12:813e9e5f5ff6 | 42 | |
amirchaudhary | 12:813e9e5f5ff6 | 43 | /*! |
amirchaudhary | 12:813e9e5f5ff6 | 44 | * Radio registers definition |
amirchaudhary | 12:813e9e5f5ff6 | 45 | */ |
amirchaudhary | 12:813e9e5f5ff6 | 46 | typedef struct |
amirchaudhary | 12:813e9e5f5ff6 | 47 | { |
amirchaudhary | 12:813e9e5f5ff6 | 48 | ModemType Modem; |
amirchaudhary | 12:813e9e5f5ff6 | 49 | uint8_t Addr; |
amirchaudhary | 12:813e9e5f5ff6 | 50 | uint8_t Value; |
amirchaudhary | 12:813e9e5f5ff6 | 51 | }RadioRegisters_t; |
amirchaudhary | 12:813e9e5f5ff6 | 52 | |
amirchaudhary | 12:813e9e5f5ff6 | 53 | #endif //__TYPEDEFS_H__ |