Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SX1272Lib by
typedefs/typedefs.h@24:f103f1004961, 2016-02-11 (annotated)
- Committer:
- jlcolemanmbed
- Date:
- Thu Feb 11 14:47:16 2016 +0000
- Revision:
- 24:f103f1004961
- Parent:
- 23:273a2f93ae99
Revisions were made to sx1272.cpp, sx1272-hal.cpp debug.h and main.cpp in order for the Ping Pong Program to work with the Freescale K22F microcontroller and the SX1272 evaluation module.
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 | |
tmulrooney | 23:273a2f93ae99 | 21 | class SX1272; |
tmulrooney | 23:273a2f93ae99 | 22 | class SX1272MB1xAS; |
GregCr | 0:e6ceb13d2d05 | 23 | /*! |
GregCr | 0:e6ceb13d2d05 | 24 | * Hardware IO IRQ callback function definition |
GregCr | 0:e6ceb13d2d05 | 25 | */ |
tmulrooney | 23:273a2f93ae99 | 26 | typedef void ( SX1272::*DioIrqHandler )( void ); |
GregCr | 0:e6ceb13d2d05 | 27 | |
GregCr | 0:e6ceb13d2d05 | 28 | /*! |
GregCr | 0:e6ceb13d2d05 | 29 | * triggers definition |
GregCr | 0:e6ceb13d2d05 | 30 | */ |
tmulrooney | 23:273a2f93ae99 | 31 | typedef void ( SX1272::*Trigger )( void ); |
tmulrooney | 23:273a2f93ae99 | 32 | typedef void ( SX1272MB1xAS::*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__ |