summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-19 13:27:09 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-19 14:33:13 +0700
commitfe052960b24ad1a6a7f6a2dd0dc81eb342d10aa4 (patch)
treecb9e64a231966aebc6cdbf394825b58626e0f79b /library
parente7c4a99160383dbb816dca3649be56f45cc672e8 (diff)
library/L1CTL_Types: turn L1ctlTchMode into an enumerated type
Diffstat (limited to 'library')
-rw-r--r--library/L1CTL_Types.ttcn10
1 files changed, 8 insertions, 2 deletions
diff --git a/library/L1CTL_Types.ttcn b/library/L1CTL_Types.ttcn
index 44f0490..5c90966 100644
--- a/library/L1CTL_Types.ttcn
+++ b/library/L1CTL_Types.ttcn
@@ -140,7 +140,13 @@ module L1CTL_Types {
} with { variant "" };
/* gsm48_chan_mode */
- type uint8_t L1ctlTchMode;
+ type enumerated L1ctlTchMode {
+ L1CTL_CHAN_MODE_SIGN ('00000000'B), /* Signalling */
+ L1CTL_CHAN_MODE_SPEECH_V1 ('00000001'B), /* FR or HR codec */
+ L1CTL_CHAN_MODE_SPEECH_V2 ('00100001'B), /* EFR codec */
+ L1CTL_CHAN_MODE_SPEECH_V3 ('01000001'B) /* AMR codec */
+ /* Other modes are not supported for now */
+ } with { variant "FIELDLENGTH(8)" };
type record L1ctlAudioMode {
BIT4 padding,
@@ -572,7 +578,7 @@ module L1CTL_Types {
payload := {
dm_est_req := {
tsc := tsc,
- tch_mode := 0,
+ tch_mode := L1CTL_CHAN_MODE_SIGN,
audio_mode := t_L1CTL_AudioModeNone
}
}