This library update contains changes according to the HW-modification.
Dependents: LoRaWAN_Serial_port_driven_and_configurable_ELMO_based_on_TxRx_Template
Fork of SX1272lib by
Changes compared to original SX1272lib:
HW modification was made to remove RFO-output and replaced with PABOOST-output. PASELECT changed accordingly.
typedefs/typedefs.h@13:1af18cdef696, 2016-10-07 (annotated)
- Committer:
- KosTee
- Date:
- Fri Oct 07 11:35:50 2016 +0000
- Revision:
- 13:1af18cdef696
- Parent:
- 2:b0a793d995ad
RFO & PABOOST transmit modification has been done to some devices.; Selection can be made on sx1272-hal.cpp.; The new transmit route is currently commented on sx1272-hal.cpp, cause majority of devices still use the old route.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WGorniak | 0:669f3b0e91c8 | 1 | /* |
WGorniak | 0:669f3b0e91c8 | 2 | / _____) _ | | |
WGorniak | 0:669f3b0e91c8 | 3 | ( (____ _____ ____ _| |_ _____ ____| |__ |
WGorniak | 0:669f3b0e91c8 | 4 | \____ \| ___ | (_ _) ___ |/ ___) _ \ |
WGorniak | 0:669f3b0e91c8 | 5 | _____) ) ____| | | || |_| ____( (___| | | | |
WGorniak | 0:669f3b0e91c8 | 6 | (______/|_____)_|_|_| \__)_____)\____)_| |_| |
WGorniak | 0:669f3b0e91c8 | 7 | ( C )2014 Semtech |
WGorniak | 0:669f3b0e91c8 | 8 | |
WGorniak | 0:669f3b0e91c8 | 9 | Description: - |
WGorniak | 0:669f3b0e91c8 | 10 | |
WGorniak | 0:669f3b0e91c8 | 11 | License: Revised BSD License, see LICENSE.TXT file include in the project |
WGorniak | 0:669f3b0e91c8 | 12 | |
WGorniak | 0:669f3b0e91c8 | 13 | Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin |
WGorniak | 0:669f3b0e91c8 | 14 | */ |
WGorniak | 0:669f3b0e91c8 | 15 | #ifndef __TYPEDEFS_H__ |
WGorniak | 0:669f3b0e91c8 | 16 | #define __TYPEDEFS_H__ |
WGorniak | 0:669f3b0e91c8 | 17 | |
WGorniak | 0:669f3b0e91c8 | 18 | #include "mbed.h" |
WGorniak | 0:669f3b0e91c8 | 19 | #include "./enums/enums.h" |
WGorniak | 0:669f3b0e91c8 | 20 | |
WGorniak | 0:669f3b0e91c8 | 21 | |
WGorniak | 0:669f3b0e91c8 | 22 | class Radio; |
WGorniak | 2:b0a793d995ad | 23 | class SX1272BRD; |
WGorniak | 0:669f3b0e91c8 | 24 | /*! |
WGorniak | 0:669f3b0e91c8 | 25 | * Hardware IO IRQ callback function definition |
WGorniak | 0:669f3b0e91c8 | 26 | */ |
WGorniak | 0:669f3b0e91c8 | 27 | typedef void ( Radio::*DioIrqHandler )( void ); |
WGorniak | 0:669f3b0e91c8 | 28 | |
WGorniak | 0:669f3b0e91c8 | 29 | /*! |
WGorniak | 0:669f3b0e91c8 | 30 | * triggers definition |
WGorniak | 0:669f3b0e91c8 | 31 | */ |
WGorniak | 0:669f3b0e91c8 | 32 | typedef void ( Radio::*Trigger )( void ); |
WGorniak | 2:b0a793d995ad | 33 | typedef void ( SX1272BRD::*TriggerSX1272BRD )( void ); |
WGorniak | 0:669f3b0e91c8 | 34 | |
WGorniak | 0:669f3b0e91c8 | 35 | /*! |
WGorniak | 0:669f3b0e91c8 | 36 | * FSK bandwidth definition |
WGorniak | 0:669f3b0e91c8 | 37 | */ |
WGorniak | 0:669f3b0e91c8 | 38 | typedef struct |
WGorniak | 0:669f3b0e91c8 | 39 | { |
WGorniak | 0:669f3b0e91c8 | 40 | uint32_t bandwidth; |
WGorniak | 0:669f3b0e91c8 | 41 | uint8_t RegValue; |
WGorniak | 0:669f3b0e91c8 | 42 | }FskBandwidth_t; |
WGorniak | 0:669f3b0e91c8 | 43 | |
WGorniak | 0:669f3b0e91c8 | 44 | /*! |
WGorniak | 0:669f3b0e91c8 | 45 | * Radio registers definition |
WGorniak | 0:669f3b0e91c8 | 46 | */ |
WGorniak | 0:669f3b0e91c8 | 47 | typedef struct |
WGorniak | 0:669f3b0e91c8 | 48 | { |
WGorniak | 0:669f3b0e91c8 | 49 | ModemType Modem; |
WGorniak | 0:669f3b0e91c8 | 50 | uint8_t Addr; |
WGorniak | 0:669f3b0e91c8 | 51 | uint8_t Value; |
WGorniak | 0:669f3b0e91c8 | 52 | }RadioRegisters_t; |
WGorniak | 0:669f3b0e91c8 | 53 | |
WGorniak | 0:669f3b0e91c8 | 54 | #endif //__TYPEDEFS_H__ |
WGorniak | 0:669f3b0e91c8 | 55 |