| 48 | #define NOISE_CNT 20 |
| 49 | |
| 50 | Transceiver::Transceiver(int wBasePort, |
| 51 | const char *TRXAddress, |
| 52 | int wSPS, |
| 53 | GSM::Time wTransmitLatency, |
| 54 | RadioInterface *wRadioInterface) |
| 55 | :mDataSocket(wBasePort+2,TRXAddress,wBasePort+102), |
| 56 | mControlSocket(wBasePort+1,TRXAddress,wBasePort+101), |
| 57 | mClockSocket(wBasePort,TRXAddress,wBasePort+100), |
| 58 | mSPSTx(wSPS), mSPSRx(1), mNoises(NOISE_CNT) |
| 59 | { |
| 60 | GSM::Time startTime(random() % gHyperframe,0); |
| 61 | |
| 62 | mRxServiceLoopThread = new Thread(32768); |
| 63 | mTxServiceLoopThread = new Thread(32768); |
| 64 | mControlServiceLoopThread = new Thread(32768); ///< thread to process control messages from GSM core |
| 65 | mTransmitPriorityQueueServiceLoopThread = new Thread(32768);///< thread to process transmit bursts from GSM core |
| 66 | |
| 67 | mRadioInterface = wRadioInterface; |
| 68 | mTransmitLatency = wTransmitLatency; |
| 69 | mTransmitDeadlineClock = startTime; |
| 70 | mLastClockUpdateTime = startTime; |
| 71 | mLatencyUpdateTime = startTime; |
| 72 | mRadioInterface->getClock()->set(startTime); |
| 73 | mMaxExpectedDelay = 0; |
| 74 | |
| 75 | txFullScale = mRadioInterface->fullScaleInputValue(); |
| 76 | rxFullScale = mRadioInterface->fullScaleOutputValue(); |
| 77 | |
| 78 | mOn = false; |
| 79 | mTxFreq = 0.0; |
| 80 | mRxFreq = 0.0; |
| 81 | mPower = -10; |
| 82 | mNoiseLev = 0.0; |
| 83 | } |
| 84 | |
| 85 | Transceiver::~Transceiver() |
| 86 | { |
nothing calls this directly
no test coverage detected