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 SX1272PingPong by
Simple Ping-Pong demo application between two SX1272MB2xAs demo board.
Application demonstrating simple Tx/Rx between two boards. By default, each board starts as a "master" and will transmit a "Ping" message, and then wait for an answer. The first board receiving a "Ping" message will become a slave and answer the "master" with a "Pong". The Ping-Pong is then started
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

SX1272MB2xAS / SX1272MB2DAS