diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-11-02 18:51:38 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-11-03 13:32:58 +0700 |
commit | 21708873998d4875404e071f1084971cbc3bc2e2 (patch) | |
tree | 32124e986748bff093547c5b2cf9f55a60b17e83 /src/host/layer23/include/osmocom/bb/common | |
parent | 1c4a77adbfd91fcf5a5ee3348aef4e81662ab7dd (diff) |
mobile: add params and VTY commands for data calls
Change-Id: If52fa70cb202f0736a17fe8eb63d226186637f62
Related: OS#4396
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/common')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/common/settings.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/settings.h b/src/host/layer23/include/osmocom/bb/common/settings.h index 458828a0..38736112 100644 --- a/src/host/layer23/include/osmocom/bb/common/settings.h +++ b/src/host/layer23/include/osmocom/bb/common/settings.h @@ -44,6 +44,20 @@ extern const struct value_string tch_voice_io_handler_names[]; static inline const char *tch_voice_io_handler_name(enum tch_voice_io_handler val) { return get_value_string(tch_voice_io_handler_names, val); } +/* TCH I/O handler for data calls */ +enum tch_data_io_handler { + /* No handler, drop frames */ + TCH_DATA_IOH_NONE = 0, + /* UNIX socket */ + TCH_DATA_IOH_UNIX_SOCK, + /* Return to sender */ + TCH_DATA_IOH_LOOPBACK, +}; + +extern const struct value_string tch_data_io_handler_names[]; +static inline const char *tch_data_io_handler_name(enum tch_data_io_handler val) +{ return get_value_string(tch_data_io_handler_names, val); } + /* TCH I/O format for voice calls */ enum tch_voice_io_format { /* RFC3551 for FR/EFR, RFC5993 for HR, RFC4867 for AMR */ @@ -56,6 +70,18 @@ extern const struct value_string tch_voice_io_format_names[]; static inline const char *tch_voice_io_format_name(enum tch_voice_io_format val) { return get_value_string(tch_voice_io_format_names, val); } +/* TCH I/O format for data calls */ +enum tch_data_io_format { + /* Osmocom format, used by trxcon and virtphy */ + TCH_DATA_IOF_OSMO, + /* Texas Instruments format, used by Calypso based phones (e.g. Motorola C1xx) */ + TCH_DATA_IOF_TI, +}; + +extern const struct value_string tch_data_io_format_names[]; +static inline const char *tch_data_io_format_name(enum tch_data_io_format val) +{ return get_value_string(tch_data_io_format_names, val); } + struct tch_voice_settings { enum tch_voice_io_handler io_handler; enum tch_voice_io_format io_format; @@ -63,6 +89,12 @@ struct tch_voice_settings { char alsa_input_dev[128]; }; +struct tch_data_settings { + enum tch_data_io_handler io_handler; + enum tch_data_io_format io_format; + char unix_socket_path[128]; +}; + struct test_sim_settings { char imsi[OSMO_IMSI_BUF_SIZE]; uint32_t tmsi; @@ -123,6 +155,7 @@ struct gsm_settings { /* TCH settings */ struct tch_voice_settings tch_voice; + struct tch_data_settings tch_data; /* IMEI */ char imei[GSM23003_IMEI_NUM_DIGITS + 1]; |