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