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.
Dependencies: SX1276Lib AdaFruit_RGBLCD MCP23017 mbed
Fork of AdaFruit_RGBLCD by
Diff: Modules/RadioModule.cpp
- Revision:
- 31:2c813f321db7
- Parent:
- 30:6b0785d23528
- Child:
- 32:a2472bbe7c92
--- a/Modules/RadioModule.cpp Tue Jun 16 11:56:16 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-#include "mbed.h"
-#include "RadioModule.h"
-#include "time_helper.h"
-#include "mbed.h"
-#include "sx1276-hal.h"
-#include "main.h"
-#include "debug.h"
-#include "vt100.h"
-#include "serial_api.h"
-
-
-RadioModule::RadioModule
-(
- Serial & in_cDisplay,
- RTclock & in_cRTclock
-)
- : Module(in_cDisplay)
- , m_cRTclock(in_cRTclock)
-{
- ::memset(&m_sLastTM,0,sizeof(m_sLastTM));
-}
-
-RadioModule::~RadioModule()
-{
-
-}
-
-void RadioModule::show(bool in_bRefresh)
-{
- Radio.Rx( RX_TIMEOUT_VALUE );
- Radio.Tx( TX_TIMEOUT_VALUE );
- app = APP_HELLO;
- //while( 1 )
- {
- // wait_ms( 50 );
- switch (app) {
- case APP_PING:
- start_ping_pong();
- break;
- case APP_CHAT:
- console_chat();
- break;
- case APP_HELLO:
- start_hello();
- wait(0.11);
- break;
- case APP_CONSOLE:
- // printf("-chat-> x");
- fflush(stdout);
- console();
- break;
- default:
- printf("unknown app %d\r\n", app);
- break;
- } // ...switch (app)
- printf("in radio mdoule\r\n");
- //m_cDisplay.printf("SNR: %d RSSI: %d", RssiValue,SnrValue);
-
- }
- m_cDisplay.printf("SNR: %d RSSI: %d", RssiValue,SnrValue);
-
-}
