From f31e4bb089453c18d42f998d8aa45b9c7947ff8a Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Wed, 16 Apr 2014 20:02:06 -0400 Subject: Transceiver52M: Setup TRX mode for MS acquisition On receipt of a SYNC command on the socket interface, set the mode to TRX_MODE_MS_ACQUIRE, which attempts to synchronize against a remote BTS signal by detecting the SCH burst and timing offset. The transceiver defaults to TRX_MODE_OFF, which implies no BTS or MS capability has been enabled. There is currently no command to enable the BTS mode. The MS mode also disables uplink transmission since no such capability is implemented. Signed-off-by: Thomas Tsou --- Transceiver52M/Transceiver.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Transceiver52M/Transceiver.h') diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h index 8433406..c167519 100644 --- a/Transceiver52M/Transceiver.h +++ b/Transceiver52M/Transceiver.h @@ -81,6 +81,9 @@ struct TransceiverState { /* Received noise energy levels */ float mNoiseLev; noiseVector mNoises; + + /* Transceiver mode */ + int mode; }; /** The Transceiver class, responsible for physical layer of basestation */ @@ -231,6 +234,12 @@ public: LOOPBACK ///< similar go VII, used in loopback testing } ChannelCombination; + enum { + TRX_MODE_OFF, + TRX_MODE_BTS, + TRX_MODE_MS_ACQUIRE, + }; + protected: /** drive lower receive I/O and burst generation */ void driveReceiveRadio(); -- cgit v1.2.3