blob: a6e84e808aae5dd892ef0c7a8b5c0bcf7dd6598a [file] [log] [blame]
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +01001#pragma once
2
3#include <osmocom/vty/command.h>
4
Pau Espin Pedrola3ab8c22018-02-21 15:41:03 +01005#include "config_defs.h"
6
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +01007extern struct vty_app_info g_vty_info;
Pau Espin Pedrola7bf6cd2020-01-14 17:52:15 +01008extern const struct value_string clock_ref_names[];
Alexander Chemeris9a87d902019-10-15 00:33:07 +03009extern const struct value_string filler_names[];
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010010
Tom Tsoud2800452019-04-01 07:55:48 +070011/* Maximum number of carriers in multi-ARFCN mode */
12#define TRX_MCHAN_MAX 3
Pau Espin Pedrola3ab8c22018-02-21 15:41:03 +010013
14/* Samples-per-symbol for downlink path
15 * 4 - Uses precision modulator (more computation, less distortion)
16 * 1 - Uses minimized modulator (less computation, more distortion)
17 *
18 * Other values are invalid. Receive path (uplink) is always
19 * downsampled to 1 sps. Default to 4 sps for all cases.
20 */
21#define DEFAULT_TX_SPS 4
22
23/*
24 * Samples-per-symbol for uplink (receiver) path
25 * Do not modify this value. EDGE configures 4 sps automatically on
26 * B200/B210 devices only. Use of 4 sps on the receive path for other
27 * configurations is not supported.
28 */
29#define DEFAULT_RX_SPS 1
30
31/* Default configuration parameters */
32#define DEFAULT_TRX_PORT 5700
33#define DEFAULT_TRX_IP "127.0.0.1"
34#define DEFAULT_CHANS 1
35
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010036struct trx_ctx {
Pau Espin Pedrol93fee1f2020-10-13 17:27:08 +020037 struct trx_cfg cfg;
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010038};
39
40int trx_vty_init(struct trx_ctx* trx);
Pau Espin Pedrola3ab8c22018-02-21 15:41:03 +010041struct trx_ctx *vty_trx_ctx_alloc(void *talloc_ctx);