srsLTE/srsenb/hdr/phy/txrx.h

75 lines
1.8 KiB
C
Raw Normal View History

2017-06-02 03:46:06 -07:00
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2017 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of srsLTE.
*
* srsUE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* srsUE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
2017-06-01 03:25:57 -07:00
2018-03-31 10:04:04 -07:00
#ifndef SRSENB_TXRX_H
#define SRSENB_TXRX_H
2017-06-01 03:25:57 -07:00
2019-04-23 01:53:11 -07:00
#include "phy_common.h"
#include "prach_worker.h"
2017-06-01 03:25:57 -07:00
#include "srslte/common/log.h"
#include "srslte/common/thread_pool.h"
2019-04-23 01:53:11 -07:00
#include "srslte/common/threads.h"
2017-06-01 03:25:57 -07:00
#include "srslte/radio/radio.h"
namespace srsenb {
typedef _Complex float cf_t;
class txrx : public thread
{
public:
txrx();
2019-04-23 01:53:11 -07:00
bool init(srslte::radio* radio_handler,
srslte::thread_pool* _workers_pool,
phy_common* worker_com,
prach_worker* prach,
srslte::log* log_h,
uint32_t prio);
2017-06-01 03:25:57 -07:00
void stop();
private:
void run_thread();
srslte::radio *radio_h;
srslte::log *log_h;
srslte::thread_pool *workers_pool;
2019-04-23 01:53:11 -07:00
prach_worker* prach;
phy_common* worker_com;
2017-06-01 03:25:57 -07:00
// Main system TTI counter
uint32_t tti;
uint32_t tx_worker_cnt;
uint32_t nof_workers;
2017-06-01 03:25:57 -07:00
bool running;
};
} // namespace srsenb
2018-03-31 10:04:04 -07:00
#endif // SRSENB_TXRX_H