path: root/Transceiver52M/radioInterface.h
diff options
authorTom Tsou <tom@tsou.cc>2014-11-25 16:06:32 -0800
committerTom Tsou <tom@tsou.cc>2014-12-15 16:20:15 -0700
commiteb54bddf47e087cf340c8a65b36a03cebd4f174b (patch)
treed9c41dfef5c514a143c521f7cd138af950a34122 /Transceiver52M/radioInterface.h
parenta4d1a4124421473f5f92255e2f3bc44bfa3937ea (diff)
Transceiver52M: Implement POWEROFF command
Add stop and restart capability through the POWEROFF and POWERON commands. Calling stop causes receive streaming to cease, and I/O threads to shutdown leaving only the control handling thread running. Upon receiving a POWERON command, I/O threads and device streaming are restarted. Proper shutdown of the transceiver is now initiated by the destructor, which calls the stop command internally to wind down and deallocate threads. Signed-off-by: Tom Tsou <tom@tsou.cc>
Diffstat (limited to 'Transceiver52M/radioInterface.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/Transceiver52M/radioInterface.h b/Transceiver52M/radioInterface.h
index 877102f..b359cbd 100644
--- a/Transceiver52M/radioInterface.h
+++ b/Transceiver52M/radioInterface.h
@@ -78,7 +78,8 @@ private:
/** start the interface */
- void start();
+ bool start();
+ bool stop();
/** intialization */
virtual bool init(int type);