Simple example Ping Pong from Semtech, updated new lib
Fork of SX1276PingPong by
i'm using stm32 nucleo l46rg and stm32 nucleo l073 with sx1276mb1mas.
Revision 6:44752b4f8ab1, committed 2014-09-23
- Comitter:
- GregCr
- Date:
- Tue Sep 23 14:24:56 2014 +0000
- Parent:
- 5:f2431c4fe3bb
- Child:
- 7:c1bbd6c56979
- Commit message:
- minor change
Changed in this revision
--- a/SX1276Lib.lib Fri Sep 19 15:24:34 2014 +0000 +++ b/SX1276Lib.lib Tue Sep 23 14:24:56 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/GregCr/code/SX1276Lib/#2b555111463f +http://mbed.org/users/GregCr/code/SX1276Lib/#0fe3e0e8007b
--- a/main.cpp Fri Sep 19 15:24:34 2014 +0000 +++ b/main.cpp Tue Sep 23 14:24:56 2014 +0000 @@ -315,41 +315,41 @@ void OnTxDone( void ) { - debug_if( DEBUG_MESSAGE, "> OnTxDone\n\r", NULL ); Radio.Sleep( ); State = TX; + debug_if( DEBUG_MESSAGE, "> OnTxDone\n\r", NULL ); } void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr) { - debug_if( DEBUG_MESSAGE, "> OnRxDone\n\r", NULL ); Radio.Sleep( ); BufferSize = size; memcpy( Buffer, payload, BufferSize ); RssiValue = rssi; SnrValue = snr; State = RX; + debug_if( DEBUG_MESSAGE, "> OnRxDone\n\r", NULL ); } void OnTxTimeout( void ) { - debug_if( DEBUG_MESSAGE, "> OnTxTimeout\n\r", NULL ); Radio.Sleep( ); State = TX_TIMEOUT; + debug_if( DEBUG_MESSAGE, "> OnTxTimeout\n\r", NULL ); } void OnRxTimeout( void ) { - debug_if( DEBUG_MESSAGE, "> OnRxTimeout\n\r", NULL ); Radio.Sleep( ); Buffer[ BufferSize ] = 0; State = RX_TIMEOUT; + debug_if( DEBUG_MESSAGE, "> OnRxTimeout\n\r", NULL ); } void OnRxError( void ) { - debug_if( DEBUG_MESSAGE, "> OnRxError\n\r", NULL ); Radio.Sleep( ); State = RX_ERROR; + debug_if( DEBUG_MESSAGE, "> OnRxError\n\r", NULL ); }
--- a/main.h Fri Sep 19 15:24:34 2014 +0000 +++ b/main.h Tue Sep 23 14:24:56 2014 +0000 @@ -4,9 +4,9 @@ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| - �2013 Semtech + ( C )2014 Semtech -Description: SX1276 FSK modem registers and bits definitions +Description: Contains the callbacks for the IRQs and any application related details License: Revised BSD License, see LICENSE.TXT file include in the project