blob: bc9bd142c46cf20a553ac60d584c6273c54fe6af [file] [log] [blame]
Ericb7253c62022-11-28 19:21:08 +01001#pragma once
2/*
3 * (C) 2022 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
4 * All Rights Reserved
5 *
6 * Author: Eric Wild <ewild@sysmocom.de>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Affero General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22#include <netdb.h>
23#include <sys/socket.h>
24#include <arpa/inet.h>
25
26#include "GSMCommon.h"
Ericb7253c62022-11-28 19:21:08 +010027#include "ms.h"
28
29class upper_trx : public ms_trx {
30 bool mOn;
31 char demodded_softbits[444];
32
33 // void driveControl();
34 bool driveControl();
35 void driveReceiveFIFO();
36 void driveTx();
37
38 bool pullRadioVector(GSM::Time &wTime, int &RSSI, int &timingOffset);
39
40 std::thread thr_control, thr_rx, thr_tx;
41
42 public:
43 void start_threads();
44 void start_lower_ms();
Ericb3157b92023-05-23 11:32:34 +020045 void stop_upper_threads();
Ericb7253c62022-11-28 19:21:08 +010046
47 upper_trx(){};
48};