pcb changes
Fork of SingleFrequencyLora by
typedefs/typedefs.h@28:7cd527a4f931, 2017-12-01 (annotated)
- Committer:
- cdebank
- Date:
- Fri Dec 01 18:07:14 2017 +0000
- Revision:
- 28:7cd527a4f931
- Parent:
- 22:7f3aab69cca9
pcb changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GregCr | 0:e6ceb13d2d05 | 1 | /* |
GregCr | 0:e6ceb13d2d05 | 2 | / _____) _ | | |
GregCr | 0:e6ceb13d2d05 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
GregCr | 0:e6ceb13d2d05 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
GregCr | 0:e6ceb13d2d05 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
GregCr | 0:e6ceb13d2d05 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
mluis | 22:7f3aab69cca9 | 7 | (C) 2014 Semtech |
GregCr | 0:e6ceb13d2d05 | 8 | |
GregCr | 0:e6ceb13d2d05 | 9 | Description: - |
GregCr | 0:e6ceb13d2d05 | 10 | |
GregCr | 0:e6ceb13d2d05 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
GregCr | 0:e6ceb13d2d05 | 12 | |
GregCr | 0:e6ceb13d2d05 | 13 | Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin |
GregCr | 0:e6ceb13d2d05 | 14 | */ |
GregCr | 0:e6ceb13d2d05 | 15 | #ifndef __TYPEDEFS_H__ |
GregCr | 0:e6ceb13d2d05 | 16 | #define __TYPEDEFS_H__ |
GregCr | 0:e6ceb13d2d05 | 17 | |
GregCr | 0:e6ceb13d2d05 | 18 | #include "mbed.h" |
GregCr | 0:e6ceb13d2d05 | 19 | #include "./enums/enums.h" |
GregCr | 0:e6ceb13d2d05 | 20 | |
GregCr | 0:e6ceb13d2d05 | 21 | class SX1276; |
GregCr | 0:e6ceb13d2d05 | 22 | class SX1276MB1xAS; |
GregCr | 0:e6ceb13d2d05 | 23 | /*! |
GregCr | 0:e6ceb13d2d05 | 24 | * Hardware IO IRQ callback function definition |
GregCr | 0:e6ceb13d2d05 | 25 | */ |
GregCr | 0:e6ceb13d2d05 | 26 | typedef void ( SX1276::*DioIrqHandler )( void ); |
GregCr | 0:e6ceb13d2d05 | 27 | |
GregCr | 0:e6ceb13d2d05 | 28 | /*! |
GregCr | 0:e6ceb13d2d05 | 29 | * triggers definition |
GregCr | 0:e6ceb13d2d05 | 30 | */ |
GregCr | 0:e6ceb13d2d05 | 31 | typedef void ( SX1276::*Trigger )( void ); |
GregCr | 0:e6ceb13d2d05 | 32 | typedef void ( SX1276MB1xAS::*TriggerMB1xAS )( void ); |
GregCr | 0:e6ceb13d2d05 | 33 | |
GregCr | 0:e6ceb13d2d05 | 34 | /*! |
GregCr | 0:e6ceb13d2d05 | 35 | * FSK bandwidth definition |
GregCr | 0:e6ceb13d2d05 | 36 | */ |
GregCr | 0:e6ceb13d2d05 | 37 | typedef struct |
GregCr | 0:e6ceb13d2d05 | 38 | { |
GregCr | 0:e6ceb13d2d05 | 39 | uint32_t bandwidth; |
GregCr | 0:e6ceb13d2d05 | 40 | uint8_t RegValue; |
GregCr | 0:e6ceb13d2d05 | 41 | }FskBandwidth_t; |
GregCr | 0:e6ceb13d2d05 | 42 | |
GregCr | 0:e6ceb13d2d05 | 43 | /*! |
GregCr | 0:e6ceb13d2d05 | 44 | * Radio registers definition |
GregCr | 0:e6ceb13d2d05 | 45 | */ |
GregCr | 0:e6ceb13d2d05 | 46 | typedef struct |
GregCr | 0:e6ceb13d2d05 | 47 | { |
mluis | 13:618826a997e2 | 48 | ModemType Modem; |
GregCr | 0:e6ceb13d2d05 | 49 | uint8_t Addr; |
GregCr | 0:e6ceb13d2d05 | 50 | uint8_t Value; |
GregCr | 0:e6ceb13d2d05 | 51 | }RadioRegisters_t; |
GregCr | 0:e6ceb13d2d05 | 52 | |
GregCr | 0:e6ceb13d2d05 | 53 | #endif //__TYPEDEFS_H__ |