Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inner types not generated #55

Open
XAMPPRocky opened this issue Oct 19, 2024 · 0 comments
Open

Inner types not generated #55

XAMPPRocky opened this issue Oct 19, 2024 · 0 comments

Comments

@XAMPPRocky
Copy link
Contributor

This type from RRC was not fully generated:

TFCS-ReconfAdd-r12 ::=					SEQUENCE{
	ctfcSize							CHOICE{
		ctfc2Bit							SEQUENCE (SIZE (1..maxTFC)) OF SEQUENCE {
			ctfc2								INTEGER (0..3),
			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		},
		ctfc4Bit							SEQUENCE (SIZE (1..maxTFC)) OF SEQUENCE {
			ctfc4 								INTEGER (0..15),
			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		},
		ctfc6Bit							SEQUENCE (SIZE (1..maxTFC)) OF SEQUENCE {
			ctfc6								INTEGER (0..63),
			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		},
		ctfc8Bit							SEQUENCE (SIZE (1..maxTFC)) OF SEQUENCE {
			ctfc8								INTEGER (0..255),
			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		},
		ctfc12Bit							SEQUENCE (SIZE(1..maxTFC)) OF SEQUENCE {
			ctfc12								INTEGER (0..4095),
 			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		},
		ctfc16Bit							SEQUENCE (SIZE (1..maxTFC)) OF SEQUENCE {
			ctfc16								INTEGER(0..65535),
			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		},
		ctfc24Bit							SEQUENCE (SIZE (1..maxTFC)) OF SEQUENCE {
			ctfc24								INTEGER(0..16777215),
			powerOffsetInformation				PowerOffsetInformation			OPTIONAL,
			powerOffsetInformation-10msMode		PowerOffsetInformation-10msMode	OPTIONAL
		}
	}
}

Generated Code (you can see the inner types are missing):

#[doc = " Inner type "]
#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
#[rasn(choice, automatic_tags)]
pub enum TFCSReconfAddR12CtfcSize {
    #[rasn(size("1..=1024"))]
    ctfc2Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc2Bit>),
    #[rasn(size("1..=1024"))]
    ctfc4Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc4Bit>),
    #[rasn(size("1..=1024"))]
    ctfc6Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc6Bit>),
    #[rasn(size("1..=1024"))]
    ctfc8Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc8Bit>),
    #[rasn(size("1..=1024"))]
    ctfc12Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc12Bit>),
    #[rasn(size("1..=1024"))]
    ctfc16Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc16Bit>),
    #[rasn(size("1..=1024"))]
    ctfc24Bit(SequenceOf<TFCSReconfAddR12CtfcSizeCtfc24Bit>),
}
#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
#[rasn(automatic_tags, identifier = "TFCS-ReconfAdd-r12")]
pub struct TFCSReconfAddR12 {
    #[rasn(identifier = "ctfcSize")]
    pub ctfc_size: TFCSReconfAddR12CtfcSize,
}
impl TFCSReconfAddR12 {
    pub fn new(ctfc_size: TFCSReconfAddR12CtfcSize) -> Self {
        Self { ctfc_size }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant