Files
osmo-trx/Transceiver52M/ms/mssdr_vty.h
rpi5 47d0d93d9e cfg2
agc+rssi

XX

Change-Id: I01f68941964e2b7404f5c26bc7f7c60e5edc4ad2

vty xx

vty

cfg#

XX

Change-Id: I5c58561fc36a6f20b11c54dbbf024be0e993aabb

XX

Change-Id: Ia0abf8897f1488fe014670d8007269f50e1ddcae

XX

Change-Id: Ibea6c811e00e2d90428c7f5dfa3a9a00134aa389

XC

Change-Id: I13adf611eb7f56c3b17f645b4122bac154fc405c

xx

Change-Id: Id8f132a446e82982b6a1db8412e1b948945ee54a
2024-03-18 20:28:10 +01:00

67 lines
1.8 KiB
C

#pragma once
/*
* (C) 2024 by sysmocom s.f.m.c. GmbH <info@sysmocom.de>
* All Rights Reserved
*
* Author: Eric Wild <ewild@sysmocom.de>
*
* This program 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.
*
* This program 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.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
struct mssdr_cfg {
// char *bind_addr;
// char *remote_addr;
// char *dev_args;
// unsigned int base_port;
// unsigned int tx_sps;
// unsigned int rx_sps;
// unsigned int rtsc;
// unsigned int rach_delay;
// enum ReferenceType clock_ref;
// enum FillerType filler;
// bool multi_arfcn;
// double offset;
// double freq_offset_khz;
// double rssi_offset;
// int ul_fn_offset;
// bool force_rssi_offset; /* Force value set in VTY? */
// bool swap_channels;
// bool ext_rach;
// bool egprs;
// unsigned int sched_rr;
// unsigned int stack_size;
// unsigned int num_chans;
// struct trx_chan chans[TRX_CHAN_MAX];
struct {
bool ul_freq_override;
bool dl_freq_override;
bool ul_gain_override;
bool dl_gain_override;
double ul_freq;
double dl_freq;
double ul_gain;
double dl_gain;
} overrides;
bool use_va;
bool use_agc;
};
struct mssdr_ctx {
struct mssdr_cfg cfg;
};
struct mssdr_ctx *vty_mssdr_ctx_alloc(void *talloc_ctx);
int mssdr_vty_init(struct mssdr_ctx *trx);
extern struct vty_app_info g_mssdr_vty_info;