dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2008 Free Software Foundation, Inc. |
| 3 | * |
| 4 | * This software is distributed under the terms of the GNU Public License. |
| 5 | * See the COPYING file in the main directory for details. |
| 6 | * |
| 7 | * This use of this software may be subject to additional restrictions. |
| 8 | * See the LEGAL file in the main directory for details. |
| 9 | |
| 10 | This program is free software: you can redistribute it and/or modify |
| 11 | it under the terms of the GNU General Public License as published by |
| 12 | the Free Software Foundation, either version 3 of the License, or |
| 13 | (at your option) any later version. |
| 14 | |
| 15 | This program is distributed in the hope that it will be useful, |
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | GNU General Public License for more details. |
| 19 | |
| 20 | You should have received a copy of the GNU General Public License |
| 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | |
| 23 | */ |
| 24 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 25 | #include "radioInterface.h" |
| 26 | #include "Interthread.h" |
| 27 | #include "GSMCommon.h" |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 28 | |
| 29 | #include <sys/types.h> |
| 30 | #include <sys/socket.h> |
| 31 | |
Pau Espin Pedrol | efac20b | 2018-02-21 14:59:19 +0100 | [diff] [blame] | 32 | extern "C" { |
Pau Espin Pedrol | db936b9 | 2018-09-03 16:50:49 +0200 | [diff] [blame] | 33 | #include <osmocom/core/signal.h> |
Pau Espin Pedrol | efac20b | 2018-02-21 14:59:19 +0100 | [diff] [blame] | 34 | #include "config_defs.h" |
| 35 | } |
| 36 | |
Pau Espin Pedrol | 7dc07b9 | 2019-07-01 17:55:01 +0200 | [diff] [blame] | 37 | #define MAX_RX_BURST_BUF_SIZE EDGE_BURST_NBITS |
| 38 | |
Pau Espin Pedrol | ddd18a5 | 2019-06-28 17:01:16 +0200 | [diff] [blame] | 39 | struct trx_ul_burst_ind { |
Pau Espin Pedrol | 7dc07b9 | 2019-07-01 17:55:01 +0200 | [diff] [blame] | 40 | float rx_burst[MAX_RX_BURST_BUF_SIZE]; /* soft bits normalized 0..1 */ |
Pau Espin Pedrol | 0e67cf2 | 2019-07-02 14:59:47 +0200 | [diff] [blame] | 41 | unsigned nbits; // number of symbols per slot in rxBurst, not counting guard periods |
Pau Espin Pedrol | 07ddce5 | 2019-07-01 16:36:10 +0200 | [diff] [blame] | 42 | uint32_t fn; // TDMA frame number |
| 43 | uint8_t tn; // TDMA time-slot number |
Pau Espin Pedrol | ddd18a5 | 2019-06-28 17:01:16 +0200 | [diff] [blame] | 44 | double rssi; // in dBFS |
| 45 | double toa; // in symbols |
| 46 | double noise; // noise level in dBFS |
Pau Espin Pedrol | ddd18a5 | 2019-06-28 17:01:16 +0200 | [diff] [blame] | 47 | }; |
| 48 | |
Thomas Tsou | f078273 | 2013-10-29 15:55:47 -0400 | [diff] [blame] | 49 | class Transceiver; |
| 50 | |
| 51 | /** Channel descriptor for transceiver object and channel number pair */ |
| 52 | struct TransceiverChannel { |
| 53 | TransceiverChannel(Transceiver *trx, int num) |
| 54 | { |
| 55 | this->trx = trx; |
| 56 | this->num = num; |
| 57 | } |
| 58 | |
| 59 | ~TransceiverChannel() |
| 60 | { |
| 61 | } |
| 62 | |
| 63 | Transceiver *trx; |
| 64 | size_t num; |
| 65 | }; |
| 66 | |
| 67 | /** Internal transceiver state variables */ |
| 68 | struct TransceiverState { |
| 69 | TransceiverState(); |
| 70 | ~TransceiverState(); |
| 71 | |
| 72 | /* Initialize a multiframe slot in the filler table */ |
Pau Espin Pedrol | efac20b | 2018-02-21 14:59:19 +0100 | [diff] [blame] | 73 | bool init(FillerType filler, size_t sps, float scale, size_t rtsc, unsigned rach_delay); |
Thomas Tsou | f078273 | 2013-10-29 15:55:47 -0400 | [diff] [blame] | 74 | |
| 75 | int chanType[8]; |
| 76 | |
| 77 | /* Last timestamp of each timeslot's channel estimate */ |
| 78 | GSM::Time chanEstimateTime[8]; |
| 79 | |
| 80 | /* The filler table */ |
| 81 | signalVector *fillerTable[102][8]; |
| 82 | int fillerModulus[8]; |
Thomas Tsou | 15d743e | 2014-01-25 02:34:03 -0500 | [diff] [blame] | 83 | bool mRetrans; |
Thomas Tsou | f078273 | 2013-10-29 15:55:47 -0400 | [diff] [blame] | 84 | |
| 85 | /* Most recent channel estimate of all timeslots */ |
| 86 | signalVector *chanResponse[8]; |
| 87 | |
| 88 | /* Most recent DFE feedback filter of all timeslots */ |
| 89 | signalVector *DFEForward[8]; |
| 90 | signalVector *DFEFeedback[8]; |
| 91 | |
| 92 | /* Most recent SNR, timing, and channel amplitude estimates */ |
| 93 | float SNRestimate[8]; |
| 94 | float chanRespOffset[8]; |
| 95 | complex chanRespAmplitude[8]; |
Thomas Tsou | a0179e3 | 2013-11-14 15:52:04 -0500 | [diff] [blame] | 96 | |
| 97 | /* Received noise energy levels */ |
| 98 | float mNoiseLev; |
| 99 | noiseVector mNoises; |
Tom Tsou | a4d1a41 | 2014-11-25 15:46:56 -0800 | [diff] [blame] | 100 | |
| 101 | /* Shadowed downlink attenuation */ |
| 102 | int mPower; |
Thomas Tsou | f078273 | 2013-10-29 15:55:47 -0400 | [diff] [blame] | 103 | }; |
| 104 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 105 | /** The Transceiver class, responsible for physical layer of basestation */ |
| 106 | class Transceiver { |
Tom Tsou | 64ad712 | 2015-05-19 18:26:31 -0700 | [diff] [blame] | 107 | public: |
Pau Espin Pedrol | 7c405a0 | 2017-07-04 16:24:06 +0200 | [diff] [blame] | 108 | /** Transceiver constructor |
Tom Tsou | 64ad712 | 2015-05-19 18:26:31 -0700 | [diff] [blame] | 109 | @param wBasePort base port number of UDP sockets |
Pau Espin Pedrol | 8c80095 | 2017-08-16 16:53:23 +0200 | [diff] [blame] | 110 | @param TRXAddress IP address of the TRX, as a string |
| 111 | @param GSMcoreAddress IP address of the GSM core, as a string |
Tom Tsou | 64ad712 | 2015-05-19 18:26:31 -0700 | [diff] [blame] | 112 | @param wSPS number of samples per GSM symbol |
| 113 | @param wTransmitLatency initial setting of transmit latency |
| 114 | @param radioInterface associated radioInterface object |
| 115 | */ |
| 116 | Transceiver(int wBasePort, |
Alexander Chemeris | e8905a0 | 2015-06-03 23:47:56 -0400 | [diff] [blame] | 117 | const char *TRXAddress, |
Pau Espin Pedrol | 8c80095 | 2017-08-16 16:53:23 +0200 | [diff] [blame] | 118 | const char *GSMcoreAddress, |
Tom Tsou | 5cd70dc | 2016-03-06 01:28:40 -0800 | [diff] [blame] | 119 | size_t tx_sps, size_t rx_sps, size_t chans, |
Alexander Chemeris | e8905a0 | 2015-06-03 23:47:56 -0400 | [diff] [blame] | 120 | GSM::Time wTransmitLatency, |
| 121 | RadioInterface *wRadioInterface, |
Eric Wild | ac0487e | 2019-06-17 13:02:44 +0200 | [diff] [blame] | 122 | double wRssiOffset, int stackSize); |
Tom Tsou | 64ad712 | 2015-05-19 18:26:31 -0700 | [diff] [blame] | 123 | |
| 124 | /** Destructor */ |
| 125 | ~Transceiver(); |
| 126 | |
| 127 | /** Start the control loop */ |
Vadim Yanitskiy | a8b3565 | 2018-10-22 02:52:18 +0200 | [diff] [blame] | 128 | bool init(FillerType filler, size_t rtsc, unsigned rach_delay, |
| 129 | bool edge, bool ext_rach); |
Tom Tsou | 64ad712 | 2015-05-19 18:26:31 -0700 | [diff] [blame] | 130 | |
| 131 | /** attach the radioInterface receive FIFO */ |
| 132 | bool receiveFIFO(VectorFIFO *wFIFO, size_t chan) |
| 133 | { |
| 134 | if (chan >= mReceiveFIFO.size()) |
| 135 | return false; |
| 136 | |
| 137 | mReceiveFIFO[chan] = wFIFO; |
| 138 | return true; |
| 139 | } |
| 140 | |
| 141 | /** accessor for number of channels */ |
| 142 | size_t numChans() const { return mChans; }; |
| 143 | |
| 144 | /** Codes for channel combinations */ |
| 145 | typedef enum { |
| 146 | FILL, ///< Channel is transmitted, but unused |
| 147 | I, ///< TCH/FS |
| 148 | II, ///< TCH/HS, idle every other slot |
| 149 | III, ///< TCH/HS |
| 150 | IV, ///< FCCH+SCH+CCCH+BCCH, uplink RACH |
| 151 | V, ///< FCCH+SCH+CCCH+BCCH+SDCCH/4+SACCH/4, uplink RACH+SDCCH/4 |
| 152 | VI, ///< CCCH+BCCH, uplink RACH |
| 153 | VII, ///< SDCCH/8 + SACCH/8 |
| 154 | VIII, ///< TCH/F + FACCH/F + SACCH/M |
| 155 | IX, ///< TCH/F + SACCH/M |
| 156 | X, ///< TCH/FD + SACCH/MD |
| 157 | XI, ///< PBCCH+PCCCH+PDTCH+PACCH+PTCCH |
| 158 | XII, ///< PCCCH+PDTCH+PACCH+PTCCH |
| 159 | XIII, ///< PDTCH+PACCH+PTCCH |
| 160 | NONE, ///< Channel is inactive, default |
| 161 | LOOPBACK ///< similar go VII, used in loopback testing |
| 162 | } ChannelCombination; |
| 163 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 164 | private: |
Thomas Tsou | d647ec5 | 2013-10-29 15:17:34 -0400 | [diff] [blame] | 165 | int mBasePort; |
Pau Espin Pedrol | 8c80095 | 2017-08-16 16:53:23 +0200 | [diff] [blame] | 166 | std::string mLocalAddr; |
| 167 | std::string mRemoteAddr; |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 168 | |
Pau Espin Pedrol | b9d2515 | 2019-07-01 19:03:49 +0200 | [diff] [blame^] | 169 | std::vector<int> mDataSockets; ///< socket for writing to/reading from GSM core |
| 170 | std::vector<int> mCtrlSockets; ///< socket for writing/reading control commands from GSM core |
| 171 | int mClockSocket; ///< socket for writing clock updates to GSM core |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 172 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 173 | std::vector<VectorQueue> mTxPriorityQueues; ///< priority queue of transmit bursts received from GSM core |
| 174 | std::vector<VectorFIFO *> mReceiveFIFO; ///< radioInterface FIFO of receive bursts |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 175 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 176 | std::vector<Thread *> mRxServiceLoopThreads; ///< thread to pull bursts into receive FIFO |
| 177 | Thread *mRxLowerLoopThread; ///< thread to pull bursts into receive FIFO |
| 178 | Thread *mTxLowerLoopThread; ///< thread to push bursts into transmit FIFO |
| 179 | std::vector<Thread *> mControlServiceLoopThreads; ///< thread to process control messages from GSM core |
| 180 | std::vector<Thread *> mTxPriorityQueueServiceLoopThreads; ///< thread to process transmit bursts from GSM core |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 181 | |
Tom Tsou | eb54bdd | 2014-11-25 16:06:32 -0800 | [diff] [blame] | 182 | GSM::Time mTransmitLatency; ///< latency between basestation clock and transmit deadline clock |
| 183 | GSM::Time mLatencyUpdateTime; ///< last time latency was updated |
Pau Espin Pedrol | 7c405a0 | 2017-07-04 16:24:06 +0200 | [diff] [blame] | 184 | GSM::Time mTransmitDeadlineClock; ///< deadline for pushing bursts into transmit FIFO |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 185 | GSM::Time mLastClockUpdateTime; ///< last time clock update was sent up to core |
| 186 | |
| 187 | RadioInterface *mRadioInterface; ///< associated radioInterface object |
| 188 | double txFullScale; ///< full scale input to radio |
| 189 | double rxFullScale; ///< full scale output to radio |
| 190 | |
Alexander Chemeris | e8905a0 | 2015-06-03 23:47:56 -0400 | [diff] [blame] | 191 | double rssiOffset; ///< RSSI to dBm conversion offset |
Eric Wild | ac0487e | 2019-06-17 13:02:44 +0200 | [diff] [blame] | 192 | int stackSize; ///< stack size for threads, 0 = OS default |
Alexander Chemeris | e8905a0 | 2015-06-03 23:47:56 -0400 | [diff] [blame] | 193 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 194 | /** modulate and add a burst to the transmit queue */ |
Thomas Tsou | a2fe91a | 2013-11-13 22:48:11 -0500 | [diff] [blame] | 195 | void addRadioVector(size_t chan, BitVector &bits, |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 196 | int RSSI, GSM::Time &wTime); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 197 | |
Thomas Tsou | 15d743e | 2014-01-25 02:34:03 -0500 | [diff] [blame] | 198 | /** Update filler table */ |
| 199 | void updateFillerTable(size_t chan, radioVector *burst); |
| 200 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 201 | /** Push modulated burst into transmit FIFO corresponding to a particular timestamp */ |
| 202 | void pushRadioVector(GSM::Time &nowTime); |
| 203 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 204 | /** Pull and demodulate a burst from the receive FIFO */ |
Pau Espin Pedrol | ddd18a5 | 2019-06-28 17:01:16 +0200 | [diff] [blame] | 205 | bool pullRadioVector(size_t chan, struct trx_ul_burst_ind *ind); |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 206 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 207 | /** Set modulus for specific timeslot */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 208 | void setModulus(size_t timeslot, size_t chan); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 209 | |
| 210 | /** return the expected burst type for the specified timestamp */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 211 | CorrType expectedCorrType(GSM::Time currTime, size_t chan); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 212 | |
| 213 | /** send messages over the clock socket */ |
| 214 | void writeClockInterface(void); |
| 215 | |
Thomas Tsou | c1f7c42 | 2013-10-11 13:49:55 -0400 | [diff] [blame] | 216 | int mSPSTx; ///< number of samples per Tx symbol |
| 217 | int mSPSRx; ///< number of samples per Rx symbol |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 218 | size_t mChans; |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 219 | |
Vadim Yanitskiy | a8b3565 | 2018-10-22 02:52:18 +0200 | [diff] [blame] | 220 | bool mExtRACH; |
Tom Tsou | 64464e6 | 2016-07-01 03:46:46 -0700 | [diff] [blame] | 221 | bool mEdge; |
Alexander Chemeris | 3722920 | 2015-06-20 01:37:54 +0300 | [diff] [blame] | 222 | bool mOn; ///< flag to indicate that transceiver is powered on |
Pau Espin Pedrol | 934da48 | 2017-07-04 16:25:20 +0200 | [diff] [blame] | 223 | bool mForceClockInterface; ///< flag to indicate whether IND CLOCK shall be sent unconditionally after transceiver is started |
Alexander Chemeris | 5a06806 | 2015-06-20 01:38:47 +0300 | [diff] [blame] | 224 | bool mHandover[8][8]; ///< expect handover to the timeslot/subslot |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 225 | double mTxFreq; ///< the transmit frequency |
| 226 | double mRxFreq; ///< the receive frequency |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 227 | unsigned mTSC; ///< the midamble sequence code |
Alexander Chemeris | 78d1fc9 | 2016-03-19 21:16:22 +0300 | [diff] [blame] | 228 | unsigned mMaxExpectedDelayAB; ///< maximum expected time-of-arrival offset in GSM symbols for Access Bursts (RACH) |
| 229 | unsigned mMaxExpectedDelayNB; ///< maximum expected time-of-arrival offset in GSM symbols for Normal Bursts |
Alexander Chemeris | e692ce9 | 2015-06-12 00:15:31 -0400 | [diff] [blame] | 230 | unsigned mWriteBurstToDiskMask; ///< debug: bitmask to indicate which timeslots to dump to disk |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 231 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 232 | std::vector<TransceiverState> mStates; |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 233 | |
Tom Tsou | eb54bdd | 2014-11-25 16:06:32 -0800 | [diff] [blame] | 234 | /** Start and stop I/O threads through the control socket API */ |
| 235 | bool start(); |
| 236 | void stop(); |
| 237 | |
| 238 | /** Protect destructor accessable stop call */ |
| 239 | Mutex mLock; |
| 240 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 241 | protected: |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 242 | /** drive lower receive I/O and burst generation */ |
| 243 | void driveReceiveRadio(); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 244 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 245 | /** drive demodulation of GSM bursts */ |
| 246 | void driveReceiveFIFO(size_t chan); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 247 | |
| 248 | /** drive transmission of GSM bursts */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 249 | void driveTxFIFO(); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 250 | |
| 251 | /** drive handling of control messages from GSM core */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 252 | void driveControl(size_t chan); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 253 | |
| 254 | /** |
| 255 | drive modulation and sorting of GSM bursts from GSM core |
| 256 | @return true if a burst was transferred successfully |
| 257 | */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 258 | bool driveTxPriorityQueue(size_t chan); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 259 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 260 | friend void *RxUpperLoopAdapter(TransceiverChannel *); |
Thomas Tsou | 92c16df | 2013-09-28 18:04:19 -0400 | [diff] [blame] | 261 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 262 | friend void *TxUpperLoopAdapter(TransceiverChannel *); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 263 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 264 | friend void *RxLowerLoopAdapter(Transceiver *); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 265 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 266 | friend void *TxLowerLoopAdapter(Transceiver *); |
| 267 | |
| 268 | friend void *ControlServiceLoopAdapter(TransceiverChannel *); |
| 269 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 270 | |
| 271 | void reset(); |
kurtis.heimerl | 6b495a5 | 2011-11-26 03:17:21 +0000 | [diff] [blame] | 272 | |
| 273 | /** set priority on current thread */ |
Thomas Tsou | 7553aa9 | 2013-11-08 12:50:03 -0500 | [diff] [blame] | 274 | void setPriority(float prio = 0.5) { mRadioInterface->setPriority(prio); } |
kurtis.heimerl | 6b495a5 | 2011-11-26 03:17:21 +0000 | [diff] [blame] | 275 | |
Pau Espin Pedrol | 607a414 | 2019-07-01 13:56:17 +0200 | [diff] [blame] | 276 | void logRxBurst(size_t chan, const struct trx_ul_burst_ind *bi); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 277 | }; |
| 278 | |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 279 | void *RxUpperLoopAdapter(TransceiverChannel *); |
| 280 | |
Thomas Tsou | 92c16df | 2013-09-28 18:04:19 -0400 | [diff] [blame] | 281 | /** Main drive threads */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 282 | void *RxLowerLoopAdapter(Transceiver *); |
| 283 | void *TxLowerLoopAdapter(Transceiver *); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 284 | |
| 285 | /** control message handler thread loop */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 286 | void *ControlServiceLoopAdapter(TransceiverChannel *); |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 287 | |
| 288 | /** transmit queueing thread loop */ |
Thomas Tsou | 204a9f1 | 2013-10-29 18:34:16 -0400 | [diff] [blame] | 289 | void *TxUpperLoopAdapter(TransceiverChannel *); |