GSM_RR_Types: Parse PacketChannelDescription

This commit is contained in:
Harald Welte 2017-07-30 04:19:14 +02:00
parent 9419c8aff7
commit 1b9b77096d
1 changed files with 30 additions and 1 deletions

View File

@ -268,7 +268,36 @@ module GSM_RR_Types {
} with { variant (len) "LENGTHTO(ma)" };
/* 10.5.2.25a */
type OCT3 PacketChannelDescription;
type record PktChDesc0Ind {
uint6_t maio,
BIT1 ma_number_ind,
BIT1 change_mark1_valid,
BIT2 change_mark1
} with { variant "" };
type record PktChDesc0 {
BIT1 hopping,
BIT1 spare ('0'B),
uint10_t arfcn optional,
PktChDesc0Ind indirect optional
} with {
variant (arfcn) "PRESENCE(hopping = '0'B)"
variant (indirect) "PRESENCE(hopping = '1'B)"
};
type record PktChDesc1 {
uint6_t maio,
uint6_t hsn
} with { variant "" };
type record PacketChannelDescription {
uint5_t channel_Type_spare,
uint3_t tn,
uint3_t tsc,
BIT1 presence,
PktChDesc0 zero optional,
PktChDesc1 one optional
} with {
variant (zero) "PRESENCE(presence = '0'B)"
variant (one) "PRESENCE(presence = '1'B)"
};
/* 10.5.2.25b */
type record DedicatedModeOrTbf {